0s autopkgtest [00:38:43]: starting date and time: 2025-05-03 00:38:43+0000 0s autopkgtest [00:38:43]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [00:38:43]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.13xz4pqk/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python3.13 --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 -- lxd -r lxd-armhf-10.145.243.56 lxd-armhf-10.145.243.56:autopkgtest/ubuntu/questing/armhf 21s autopkgtest [00:39:04]: testbed dpkg architecture: armhf 23s autopkgtest [00:39:06]: testbed apt version: 3.0.0 26s autopkgtest [00:39:09]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [00:39:11]: testbed release detected to be: None 36s autopkgtest [00:39:19]: updating testbed package index (apt update) 38s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 38s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 38s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 38s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 38s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1947 kB] 38s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.1 kB] 38s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [168 kB] 38s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [205 kB] 38s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 38s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.9 kB] 38s Get:11 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 39s Get:12 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 39s Get:13 http://ftpmaster.internal/ubuntu questing/main Sources [1397 kB] 39s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 39s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.4 MB] 39s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 43s Fetched 43.9 MB in 5s (8288 kB/s) 44s Reading package lists... 50s autopkgtest [00:39:33]: upgrading testbed (apt dist-upgrade and autopurge) 51s Reading package lists... 52s Building dependency tree... 52s Reading state information... 52s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 52s Starting 2 pkgProblemResolver with broken count: 0 52s Done 53s Entering ResolveByKeep 54s 54s Calculating upgrade... 54s The following packages will be upgraded: 54s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 54s libftdi1-2 libfwupd3 libnpth0t64 libpython3.13-minimal libpython3.13-stdlib 54s libsensors-config libsensors5 liburcu8t64 motd-news-config nano python3.13 54s python3.13-gdbm python3.13-minimal ubuntu-pro-client ubuntu-pro-client-l10n 54s usb.ids 55s 24 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 55s Need to get 11.0 MB of archives. 55s After this operation, 3722 kB disk space will be freed. 55s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 55s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 55s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 55s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 55s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 55s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 55s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 55s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 55s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 55s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 55s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 55s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 55s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 55s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 55s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 55s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 55s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 55s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 55s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 55s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 55s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 55s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 55s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 55s Get:24 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 56s Fetched 11.0 MB in 1s (10.5 MB/s) 56s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 56s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 56s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 57s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 57s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 57s Setting up base-files (13.7ubuntu1) ... 57s Installing new version of config file /etc/issue ... 57s Installing new version of config file /etc/issue.net ... 57s Installing new version of config file /etc/lsb-release ... 58s motd-news.service is a disabled or a static unit not running, not starting it. 58s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 58s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 58s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 59s Setting up dpkg (1.22.18ubuntu3) ... 59s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 59s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 59s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 59s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 59s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 59s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 59s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 59s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 59s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 59s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 59s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 59s Setting up libnpth0t64:armhf (1.8-3) ... 59s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 59s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 59s Unpacking distro-info-data (0.64) over (0.63) ... 59s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 59s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 59s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 60s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 60s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 60s Unpacking ed (1.21.1-1) over (1.21-1) ... 60s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 60s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 60s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 60s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 60s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 60s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 60s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 60s Unpacking nano (8.4-1) over (8.3-1) ... 60s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 60s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 60s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 60s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 61s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 61s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 61s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 61s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 61s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 61s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 61s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 61s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 61s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 61s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 61s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 61s Preparing to unpack .../15-python3.13-gdbm_3.13.3-2_armhf.deb ... 61s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 61s Setting up motd-news-config (13.7ubuntu1) ... 61s Setting up liburcu8t64:armhf (0.15.2-2) ... 61s Setting up distro-info-data (0.64) ... 61s Setting up htop (3.4.1-4) ... 61s Setting up libsensors-config (1:3.6.2-2) ... 61s Installing new version of config file /etc/sensors3.conf ... 61s Setting up libfwupd3:armhf (2.0.8-3) ... 61s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 61s Setting up libftdi1-2:armhf (1.5-10) ... 61s Setting up ed (1.21.1-1) ... 61s Setting up usb.ids (2025.04.01-1) ... 61s Setting up libsensors5:armhf (1:3.6.2-2) ... 61s Setting up libdpkg-perl (1.22.18ubuntu3) ... 61s Setting up nano (8.4-1) ... 61s Installing new version of config file /etc/nanorc ... 61s Setting up python3.13-minimal (3.13.3-2) ... 62s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 62s Setting up ubuntu-pro-client (35.1ubuntu0) ... 63s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 63s 63s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 63s 63s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 63s 64s Setting up fwupd (2.0.8-3) ... 65s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 65s fwupd.service is a disabled or a static unit not running, not starting it. 65s Setting up python3.13-gdbm (3.13.3-2) ... 65s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 65s Setting up python3.13 (3.13.3-2) ... 66s Setting up dpkg-dev (1.22.18ubuntu3) ... 66s Processing triggers for dbus (1.16.2-2ubuntu1) ... 66s Processing triggers for install-info (7.1.1-1) ... 67s Processing triggers for libc-bin (2.41-6ubuntu1) ... 67s Processing triggers for systemd (257.4-1ubuntu3) ... 67s Processing triggers for man-db (2.13.0-1) ... 69s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 69s Processing triggers for initramfs-tools (0.147ubuntu1) ... 71s Reading package lists... 71s Building dependency tree... 71s Reading state information... 72s Starting pkgProblemResolver with broken count: 0 72s Starting 2 pkgProblemResolver with broken count: 0 72s Done 72s Solving dependencies... 73s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 75s autopkgtest [00:39:58]: rebooting testbed after setup commands that affected boot 115s autopkgtest [00:40:38]: testbed running kernel: Linux 6.8.0-58-generic #60~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 28 14:48:37 UTC 2 139s autopkgtest [00:41:02]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 205s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (dsc) [4812 B] 205s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [661 kB] 205s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [5615 kB] 205s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (diff) [136 kB] 205s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 205s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 205s gpgv: Can't check signature: No public key 205s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 206s autopkgtest [00:42:09]: testing package glib2.0 version 2.84.1-1 214s autopkgtest [00:42:17]: build not needed 223s autopkgtest [00:42:26]: test build: preparing testbed 225s Reading package lists... 225s Building dependency tree... 225s Reading state information... 225s Starting pkgProblemResolver with broken count: 0 225s Starting 2 pkgProblemResolver with broken count: 0 225s Done 226s The following NEW packages will be installed: 226s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 226s cpp-arm-linux-gnueabihf g++ g++-14 g++-14-arm-linux-gnueabihf 226s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 226s gcc-arm-linux-gnueabihf libasan8 libblkid-dev libc-dev-bin libc6-dev 226s libcc1-0 libcrypt-dev libffi-dev libgcc-14-dev libgio-2.0-dev libgomp1 226s libisl23 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 226s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 226s libsysprof-capture-4-dev libubsan1 linux-libc-dev pkgconf pkgconf-bin 226s rpcsvc-proto uuid-dev zlib1g-dev 226s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 226s Need to get 54.7 MB of archives. 226s After this operation, 161 MB of additional disk space will be used. 226s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libc-dev-bin armhf 2.41-6ubuntu1 [21.7 kB] 227s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf linux-libc-dev armhf 6.14.0-15.15 [1687 kB] 227s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 227s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 227s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libc6-dev armhf 2.41-6ubuntu1 [1396 kB] 227s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf libisl23 armhf 0.27-1 [546 kB] 227s Get:7 http://ftpmaster.internal/ubuntu questing/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 227s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [9221 kB] 227s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf cpp-14 armhf 14.2.0-19ubuntu2 [1032 B] 227s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 227s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 227s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf libcc1-0 armhf 15-20250404-0ubuntu1 [43.3 kB] 227s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libgomp1 armhf 15-20250404-0ubuntu1 [128 kB] 227s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libasan8 armhf 15-20250404-0ubuntu1 [2951 kB] 227s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libubsan1 armhf 15-20250404-0ubuntu1 [1188 kB] 227s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libgcc-14-dev armhf 14.2.0-19ubuntu2 [897 kB] 227s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [18.0 MB] 228s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf gcc-14 armhf 14.2.0-19ubuntu2 [510 kB] 228s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 228s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 228s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libstdc++-14-dev armhf 14.2.0-19ubuntu2 [2576 kB] 228s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [10.5 MB] 228s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf g++-14 armhf 14.2.0-19ubuntu2 [23.0 kB] 228s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 228s Get:25 http://ftpmaster.internal/ubuntu questing/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 228s Get:26 http://ftpmaster.internal/ubuntu questing/main armhf build-essential armhf 12.12ubuntu1 [5088 B] 228s Get:27 http://ftpmaster.internal/ubuntu questing/main armhf libffi-dev armhf 3.4.7-1 [57.2 kB] 228s Get:28 http://ftpmaster.internal/ubuntu questing/main armhf uuid-dev armhf 2.40.2-14ubuntu1 [52.6 kB] 228s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf libblkid-dev armhf 2.40.2-14ubuntu1 [218 kB] 228s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf libsepol-dev armhf 3.7-1 [381 kB] 228s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 228s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 228s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 228s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 228s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libselinux1-dev armhf 3.7-3ubuntu3 [160 kB] 228s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libmount-dev armhf 2.40.2-14ubuntu1 [34.6 kB] 228s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 228s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 228s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 228s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 228s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 228s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev armhf 2.84.1-1 [1714 kB] 229s Fetched 54.7 MB in 2s (27.7 MB/s) 229s Selecting previously unselected package libc-dev-bin. 229s (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 ... 63951 files and directories currently installed.) 229s Preparing to unpack .../00-libc-dev-bin_2.41-6ubuntu1_armhf.deb ... 229s Unpacking libc-dev-bin (2.41-6ubuntu1) ... 229s Selecting previously unselected package linux-libc-dev:armhf. 229s Preparing to unpack .../01-linux-libc-dev_6.14.0-15.15_armhf.deb ... 229s Unpacking linux-libc-dev:armhf (6.14.0-15.15) ... 229s Selecting previously unselected package libcrypt-dev:armhf. 229s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 229s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 229s Selecting previously unselected package rpcsvc-proto. 229s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 229s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 229s Selecting previously unselected package libc6-dev:armhf. 229s Preparing to unpack .../04-libc6-dev_2.41-6ubuntu1_armhf.deb ... 229s Unpacking libc6-dev:armhf (2.41-6ubuntu1) ... 229s Selecting previously unselected package libisl23:armhf. 229s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 229s Unpacking libisl23:armhf (0.27-1) ... 229s Selecting previously unselected package libmpc3:armhf. 230s Preparing to unpack .../06-libmpc3_1.3.1-1build2_armhf.deb ... 230s Unpacking libmpc3:armhf (1.3.1-1build2) ... 230s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 230s Preparing to unpack .../07-cpp-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 230s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 230s Selecting previously unselected package cpp-14. 230s Preparing to unpack .../08-cpp-14_14.2.0-19ubuntu2_armhf.deb ... 230s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 230s Selecting previously unselected package cpp-arm-linux-gnueabihf. 230s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 230s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 230s Selecting previously unselected package cpp. 230s Preparing to unpack .../10-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 230s Unpacking cpp (4:14.2.0-1ubuntu1) ... 230s Selecting previously unselected package libcc1-0:armhf. 230s Preparing to unpack .../11-libcc1-0_15-20250404-0ubuntu1_armhf.deb ... 230s Unpacking libcc1-0:armhf (15-20250404-0ubuntu1) ... 230s Selecting previously unselected package libgomp1:armhf. 230s Preparing to unpack .../12-libgomp1_15-20250404-0ubuntu1_armhf.deb ... 230s Unpacking libgomp1:armhf (15-20250404-0ubuntu1) ... 230s Selecting previously unselected package libasan8:armhf. 230s Preparing to unpack .../13-libasan8_15-20250404-0ubuntu1_armhf.deb ... 230s Unpacking libasan8:armhf (15-20250404-0ubuntu1) ... 230s Selecting previously unselected package libubsan1:armhf. 230s Preparing to unpack .../14-libubsan1_15-20250404-0ubuntu1_armhf.deb ... 230s Unpacking libubsan1:armhf (15-20250404-0ubuntu1) ... 230s Selecting previously unselected package libgcc-14-dev:armhf. 230s Preparing to unpack .../15-libgcc-14-dev_14.2.0-19ubuntu2_armhf.deb ... 230s Unpacking libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 230s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 230s Preparing to unpack .../16-gcc-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 230s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 231s Selecting previously unselected package gcc-14. 231s Preparing to unpack .../17-gcc-14_14.2.0-19ubuntu2_armhf.deb ... 231s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 231s Selecting previously unselected package gcc-arm-linux-gnueabihf. 231s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 231s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 231s Selecting previously unselected package gcc. 231s Preparing to unpack .../19-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 231s Unpacking gcc (4:14.2.0-1ubuntu1) ... 231s Selecting previously unselected package libstdc++-14-dev:armhf. 231s Preparing to unpack .../20-libstdc++-14-dev_14.2.0-19ubuntu2_armhf.deb ... 231s Unpacking libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 231s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 231s Preparing to unpack .../21-g++-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 231s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 232s Selecting previously unselected package g++-14. 232s Preparing to unpack .../22-g++-14_14.2.0-19ubuntu2_armhf.deb ... 232s Unpacking g++-14 (14.2.0-19ubuntu2) ... 232s Selecting previously unselected package g++-arm-linux-gnueabihf. 232s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 232s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 232s Selecting previously unselected package g++. 232s Preparing to unpack .../24-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 232s Unpacking g++ (4:14.2.0-1ubuntu1) ... 232s Selecting previously unselected package build-essential. 232s Preparing to unpack .../25-build-essential_12.12ubuntu1_armhf.deb ... 232s Unpacking build-essential (12.12ubuntu1) ... 232s Selecting previously unselected package libffi-dev:armhf. 232s Preparing to unpack .../26-libffi-dev_3.4.7-1_armhf.deb ... 232s Unpacking libffi-dev:armhf (3.4.7-1) ... 232s Selecting previously unselected package uuid-dev:armhf. 232s Preparing to unpack .../27-uuid-dev_2.40.2-14ubuntu1_armhf.deb ... 232s Unpacking uuid-dev:armhf (2.40.2-14ubuntu1) ... 232s Selecting previously unselected package libblkid-dev:armhf. 232s Preparing to unpack .../28-libblkid-dev_2.40.2-14ubuntu1_armhf.deb ... 232s Unpacking libblkid-dev:armhf (2.40.2-14ubuntu1) ... 232s Selecting previously unselected package libsepol-dev:armhf. 232s Preparing to unpack .../29-libsepol-dev_3.7-1_armhf.deb ... 232s Unpacking libsepol-dev:armhf (3.7-1) ... 232s Selecting previously unselected package libpcre2-16-0:armhf. 232s Preparing to unpack .../30-libpcre2-16-0_10.45-1_armhf.deb ... 232s Unpacking libpcre2-16-0:armhf (10.45-1) ... 232s Selecting previously unselected package libpcre2-32-0:armhf. 232s Preparing to unpack .../31-libpcre2-32-0_10.45-1_armhf.deb ... 232s Unpacking libpcre2-32-0:armhf (10.45-1) ... 232s Selecting previously unselected package libpcre2-posix3:armhf. 232s Preparing to unpack .../32-libpcre2-posix3_10.45-1_armhf.deb ... 232s Unpacking libpcre2-posix3:armhf (10.45-1) ... 232s Selecting previously unselected package libpcre2-dev:armhf. 232s Preparing to unpack .../33-libpcre2-dev_10.45-1_armhf.deb ... 232s Unpacking libpcre2-dev:armhf (10.45-1) ... 232s Selecting previously unselected package libselinux1-dev:armhf. 233s Preparing to unpack .../34-libselinux1-dev_3.7-3ubuntu3_armhf.deb ... 233s Unpacking libselinux1-dev:armhf (3.7-3ubuntu3) ... 233s Selecting previously unselected package libmount-dev:armhf. 233s Preparing to unpack .../35-libmount-dev_2.40.2-14ubuntu1_armhf.deb ... 233s Unpacking libmount-dev:armhf (2.40.2-14ubuntu1) ... 233s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 233s Preparing to unpack .../36-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 233s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 233s Selecting previously unselected package libpkgconf3:armhf. 233s Preparing to unpack .../37-libpkgconf3_1.8.1-4_armhf.deb ... 233s Unpacking libpkgconf3:armhf (1.8.1-4) ... 233s Selecting previously unselected package pkgconf-bin. 233s Preparing to unpack .../38-pkgconf-bin_1.8.1-4_armhf.deb ... 233s Unpacking pkgconf-bin (1.8.1-4) ... 233s Selecting previously unselected package pkgconf:armhf. 233s Preparing to unpack .../39-pkgconf_1.8.1-4_armhf.deb ... 233s Unpacking pkgconf:armhf (1.8.1-4) ... 233s Selecting previously unselected package zlib1g-dev:armhf. 233s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 233s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 233s Selecting previously unselected package libgio-2.0-dev:armhf. 233s Preparing to unpack .../41-libgio-2.0-dev_2.84.1-1_armhf.deb ... 233s Unpacking libgio-2.0-dev:armhf (2.84.1-1) ... 233s Setting up linux-libc-dev:armhf (6.14.0-15.15) ... 233s Setting up libgomp1:armhf (15-20250404-0ubuntu1) ... 233s Setting up libffi-dev:armhf (3.4.7-1) ... 233s Setting up libpcre2-16-0:armhf (10.45-1) ... 233s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 233s Setting up libpcre2-32-0:armhf (10.45-1) ... 233s Setting up libpkgconf3:armhf (1.8.1-4) ... 233s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 233s Setting up libmpc3:armhf (1.3.1-1build2) ... 233s Setting up libsepol-dev:armhf (3.7-1) ... 233s Setting up pkgconf-bin (1.8.1-4) ... 233s Setting up libubsan1:armhf (15-20250404-0ubuntu1) ... 233s Setting up libpcre2-posix3:armhf (10.45-1) ... 233s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 233s Setting up libasan8:armhf (15-20250404-0ubuntu1) ... 233s Setting up libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 233s Setting up libisl23:armhf (0.27-1) ... 233s Setting up libc-dev-bin (2.41-6ubuntu1) ... 233s Setting up libcc1-0:armhf (15-20250404-0ubuntu1) ... 233s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 233s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 233s Setting up pkgconf:armhf (1.8.1-4) ... 233s Setting up cpp-14 (14.2.0-19ubuntu2) ... 233s Setting up libc6-dev:armhf (2.41-6ubuntu1) ... 233s Setting up libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 233s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 233s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 233s Setting up g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 233s Setting up libpcre2-dev:armhf (10.45-1) ... 233s Setting up libselinux1-dev:armhf (3.7-3ubuntu3) ... 233s Setting up gcc-14 (14.2.0-19ubuntu2) ... 233s Setting up uuid-dev:armhf (2.40.2-14ubuntu1) ... 233s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 233s Setting up cpp (4:14.2.0-1ubuntu1) ... 233s Setting up g++-14 (14.2.0-19ubuntu2) ... 233s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 233s Setting up libblkid-dev:armhf (2.40.2-14ubuntu1) ... 233s Setting up gcc (4:14.2.0-1ubuntu1) ... 233s Setting up g++ (4:14.2.0-1ubuntu1) ... 233s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 233s Setting up build-essential (12.12ubuntu1) ... 233s Setting up libmount-dev:armhf (2.40.2-14ubuntu1) ... 233s Setting up libgio-2.0-dev:armhf (2.84.1-1) ... 233s Processing triggers for man-db (2.13.0-1) ... 234s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 234s No schema files found: doing nothing. 234s Processing triggers for install-info (7.1.1-1) ... 234s Processing triggers for libc-bin (2.41-6ubuntu1) ... 242s autopkgtest [00:42:45]: test build: [----------------------- 243s + mode=dynamic 243s + getopt -o --long static -n debian/tests/build -- 243s + getopt_temp= -- 243s + eval set -- -- 243s + set -- -- 243s + true 243s + shift 243s + break 243s + mktemp -d 243s + WORKDIR=/tmp/tmp.zJamlpj7ay 243s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 243s + cd /tmp/tmp.zJamlpj7ay 243s + [ -n ] 243s + CROSS_COMPILE= 243s + cat 243s + cat 243s + cat 243s + cat 243s + cat 243s + cat 243s + cflags= 243s + pcflags= 243s + packages=glib-2.0 243s + pkg-config --cflags --libs glib-2.0 243s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 244s + echo build (glib, dynamic): OK 244s + [ -x glib-dynamic ] 244s + foo=bar ./glib-dynamic 244s build (glib, dynamic): OK 244s + echo run (glib, dynamic): OK 244s + cflags= 244s + pcflags= 244s + packages=gobject-2.0 244s run (glib, dynamic): OK 244s + pkg-config --cflags --libs gobject-2.0 244s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 244s build (gobject, dynamic): OK 244s + echo build (gobject, dynamic): OK 244s + [ -x gobject-dynamic ] 244s + foo=bar ./gobject-dynamic 244s run (gobject, dynamic): OK 244s + echo run (gobject, dynamic): OK 244s + cflags= 244s + pcflags= 244s + packages=gio-2.0 244s + pkg-config --cflags --libs gio-2.0 244s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 244s + echo build (gio, dynamic): OK 244s + [ -x gio-dynamic ] 244s + foo=bar ./gio-dynamic 244s build (gio, dynamic): OK 244s run (gio, dynamic): OK 244s + echo run (gio, dynamic): OK 244s + cflags= 244s + pcflags= 244s + packages=gio-unix-2.0 244s + pkg-config --cflags --libs gio-unix-2.0 244s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 244s + echo build (gio-unix, dynamic): OK 244s + [ -x gio-unix-dynamic ] 244s + foo=bar ./gio-unix-dynamic 244s + echo run (gio-unix, dynamic): OK 244s + cflags= 244s + pcflags= 244s + packages=gmodule-2.0 244s + pkg-config --cflags --libs gmodule-2.0 244s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 244s build (gio-unix, dynamic): OK 244s run (gio-unix, dynamic): OK 244s build (gmodule, dynamic): OK 244s + echo build (gmodule, dynamic): OK 244s + [ -x gmodule-dynamic ] 244s + foo=bar ./gmodule-dynamic 244s run (gmodule, dynamic): OK 244s + echo run (gmodule, dynamic): OK 244s + cflags= 244s + pcflags= 244s + packages=gthread-2.0 244s + pkg-config --cflags --libs gthread-2.0 244s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 244s + echo build (gthread, dynamic): OK 244s + [ -x gthread-dynamic ] 244s + foo=bar ./gthread-dynamic 244s + echo run (gthread, dynamic): OK 244s + rm -rf /tmp/tmp.zJamlpj7ay 244s build (gthread, dynamic): OK 244s run (gthread, dynamic): OK 245s autopkgtest [00:42:48]: test build: -----------------------] 249s autopkgtest [00:42:52]: test build: - - - - - - - - - - results - - - - - - - - - - 249s build PASS (superficial) 252s autopkgtest [00:42:55]: test build-static: preparing testbed 254s Reading package lists... 254s Building dependency tree... 254s Reading state information... 255s Starting pkgProblemResolver with broken count: 0 255s Starting 2 pkgProblemResolver with broken count: 0 255s Done 256s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 263s autopkgtest [00:43:06]: test build-static: [----------------------- 265s + mode=dynamic 265s + getopt -o --long static -n debian/tests/build -- --static 265s + getopt_temp= --static -- 265s + eval set -- --static -- 265s + set -- --static -- 265s + true 265s + mode=static 265s + shift 265s + continue 265s + true 265s + shift 265s + break 265s + mktemp -d 265s + WORKDIR=/tmp/tmp.k9fi89BZ7h 265s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 265s + cd /tmp/tmp.k9fi89BZ7h 265s + [ -n ] 265s + CROSS_COMPILE= 265s + cat 265s + cat 265s + cat 265s + cat 265s + cat 265s + cat 265s + cflags= 265s + pcflags= 265s + packages=glib-2.0 265s + cflags=-static 265s + pcflags=--static 265s + pkg-config --static --cflags --libs glib-2.0 265s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 265s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 265s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s + echo build (glib, static): OK 265s + [ -x glib-static ] 265s + foo=bar ./glib-static 265s build (glib, static): OK 265s + echo run (glib, static): OK 265s + cflags= 265s + pcflags= 265s + packages=gobject-2.0 265s + cflags=-static 265s + pcflags=--static 265s + pkg-config --static --cflags --libs gobject-2.0 265s run (glib, static): OK 265s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 265s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 265s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s + echo build (gobject, static): OK 265s + [ -x gobject-static ] 265s + foo=bar ./gobject-static 265s build (gobject, static): OK 265s + echo run (gobject, static): OK 265s + cflags= 265s + pcflags= 265s + packages=gio-2.0 265s + cflags=-static 265s + pcflags=--static 265s + continue 265s + cflags= 265s + pcflags= 265s + packages=gio-unix-2.0 265s + cflags=-static 265s + pcflags=--static 265s + continue 265s + cflags= 265s + pcflags= 265s + packages=gmodule-2.0 265s + cflags=-static 265s + pcflags=--static 265s + pkg-config --static --cflags --libs gmodule-2.0 265s run (gobject, static): OK 265s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 265s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 265s (.text+0x412): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 265s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s build (gmodule, static): OK 265s + echo build (gmodule, static): OK 265s + [ -x gmodule-static ] 265s + foo=bar ./gmodule-static 265s + echo run (gmodule, static): OK 265s + cflags= 265s + pcflags= 265s + packages=gthread-2.0 265s + cflags=-static 265s + pcflags=--static 265s + pkg-config --static --cflags --libs gthread-2.0 265s run (gmodule, static): OK 265s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 265s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 265s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 265s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s build (gthread, static): OK 266s + echo build (gthread, static): OK 266s + [ -x gthread-static ] 266s + foo=bar ./gthread-static 266s run (gthread, static): OK 266s + echo run (gthread, static): OK 266s + rm -rf /tmp/tmp.k9fi89BZ7h 266s autopkgtest [00:43:09]: test build-static: -----------------------] 270s autopkgtest [00:43:13]: test build-static: - - - - - - - - - - results - - - - - - - - - - 270s build-static PASS (superficial) 273s autopkgtest [00:43:16]: test girepository-tools: preparing testbed 295s autopkgtest [00:43:38]: testbed dpkg architecture: armhf 297s autopkgtest [00:43:40]: testbed apt version: 3.0.0 300s autopkgtest [00:43:43]: @@@@@@@@@@@@@@@@@@@@ test bed setup 302s autopkgtest [00:43:45]: testbed release detected to be: questing 310s autopkgtest [00:43:53]: updating testbed package index (apt update) 312s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 312s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 312s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 313s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 313s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1934 kB] 313s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [169 kB] 313s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.4 kB] 313s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [204 kB] 313s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 313s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.5 kB] 313s Get:11 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 313s Get:12 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 313s Get:13 http://ftpmaster.internal/ubuntu questing/main Sources [1390 kB] 313s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 313s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.2 MB] 314s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 317s Fetched 43.7 MB in 5s (8262 kB/s) 318s Reading package lists... 324s autopkgtest [00:44:07]: upgrading testbed (apt dist-upgrade and autopurge) 326s Reading package lists... 326s Building dependency tree... 326s Reading state information... 327s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 327s Starting 2 pkgProblemResolver with broken count: 0 327s Done 328s Entering ResolveByKeep 328s 328s Calculating upgrade... 329s The following packages will be upgraded: 329s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 329s libftdi1-2 libfwupd3 libnpth0t64 libnvme1t64 libpython3.13-minimal 329s libpython3.13-stdlib libsensors-config libsensors5 liburcu8t64 329s motd-news-config nano python3.13 python3.13-gdbm python3.13-minimal 329s ubuntu-pro-client ubuntu-pro-client-l10n usb.ids 329s 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 329s Need to get 11.0 MB of archives. 329s After this operation, 3722 kB disk space will be freed. 329s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 329s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 329s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 329s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 330s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 330s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 330s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 330s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 330s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 330s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 330s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 330s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 330s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 330s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 330s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 330s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 330s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 330s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 330s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 330s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 330s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 330s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 330s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 330s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libnvme1t64 armhf 1.13-2 [74.3 kB] 330s Get:25 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 330s Fetched 11.0 MB in 1s (11.4 MB/s) 330s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 330s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 330s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 330s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 331s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 331s Setting up base-files (13.7ubuntu1) ... 331s Installing new version of config file /etc/issue ... 331s Installing new version of config file /etc/issue.net ... 331s Installing new version of config file /etc/lsb-release ... 331s motd-news.service is a disabled or a static unit not running, not starting it. 331s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 331s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 331s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 332s Setting up dpkg (1.22.18ubuntu3) ... 332s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 332s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 332s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 332s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 332s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 332s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 332s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 332s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 332s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 333s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 333s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 333s Setting up libnpth0t64:armhf (1.8-3) ... 333s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 333s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 333s Unpacking distro-info-data (0.64) over (0.63) ... 333s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 333s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 333s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 333s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 333s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 333s Unpacking ed (1.21.1-1) over (1.21-1) ... 333s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 333s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 333s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 333s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 333s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 333s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 333s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 333s Unpacking nano (8.4-1) over (8.3-1) ... 333s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 333s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 333s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 333s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 333s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 333s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 334s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 334s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 334s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 334s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 334s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 334s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 334s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 334s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 334s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 334s Preparing to unpack .../15-libnvme1t64_1.13-2_armhf.deb ... 334s Unpacking libnvme1t64 (1.13-2) over (1.11.1-2) ... 334s Preparing to unpack .../16-python3.13-gdbm_3.13.3-2_armhf.deb ... 334s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 334s Setting up motd-news-config (13.7ubuntu1) ... 334s Setting up liburcu8t64:armhf (0.15.2-2) ... 334s Setting up distro-info-data (0.64) ... 334s Setting up htop (3.4.1-4) ... 334s Setting up libsensors-config (1:3.6.2-2) ... 334s Installing new version of config file /etc/sensors3.conf ... 334s Setting up libfwupd3:armhf (2.0.8-3) ... 334s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 334s Setting up libftdi1-2:armhf (1.5-10) ... 334s Setting up libnvme1t64 (1.13-2) ... 334s Setting up ed (1.21.1-1) ... 334s Setting up usb.ids (2025.04.01-1) ... 334s Setting up libsensors5:armhf (1:3.6.2-2) ... 334s Setting up libdpkg-perl (1.22.18ubuntu3) ... 334s Setting up nano (8.4-1) ... 334s Installing new version of config file /etc/nanorc ... 334s Setting up python3.13-minimal (3.13.3-2) ... 335s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 335s Setting up ubuntu-pro-client (35.1ubuntu0) ... 335s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 335s 335s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 335s 335s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 335s 337s Setting up fwupd (2.0.8-3) ... 337s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 337s fwupd.service is a disabled or a static unit not running, not starting it. 337s Setting up python3.13-gdbm (3.13.3-2) ... 337s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 337s Setting up python3.13 (3.13.3-2) ... 339s Setting up dpkg-dev (1.22.18ubuntu3) ... 339s Processing triggers for dbus (1.16.2-2ubuntu1) ... 339s Processing triggers for install-info (7.1.1-1) ... 339s Processing triggers for libc-bin (2.41-6ubuntu1) ... 339s Processing triggers for systemd (257.4-1ubuntu3) ... 339s Processing triggers for man-db (2.13.0-1) ... 341s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 341s Processing triggers for initramfs-tools (0.147ubuntu1) ... 343s Reading package lists... 343s Building dependency tree... 343s Reading state information... 343s Starting pkgProblemResolver with broken count: 0 343s Starting 2 pkgProblemResolver with broken count: 0 343s Done 344s Solving dependencies... 344s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 346s autopkgtest [00:44:29]: rebooting testbed after setup commands that affected boot 409s Reading package lists... 409s Building dependency tree... 409s Reading state information... 410s Starting pkgProblemResolver with broken count: 0 410s Starting 2 pkgProblemResolver with broken count: 0 410s Done 411s The following NEW packages will be installed: 411s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 411s native-architecture 411s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 411s Need to get 1073 kB of archives. 411s After this operation, 12.7 MB of additional disk space will be used. 411s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 411s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 411s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 411s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 412s Fetched 1073 kB in 1s (1695 kB/s) 412s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 412s (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 ... 63951 files and directories currently installed.) 412s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 412s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 412s Selecting previously unselected package native-architecture. 412s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 412s Unpacking native-architecture (0.2.6) ... 412s Selecting previously unselected package libgirepository-2.0-0:armhf. 412s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_armhf.deb ... 412s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 412s Selecting previously unselected package girepository-tools:armhf. 412s Preparing to unpack .../girepository-tools_2.84.1-1_armhf.deb ... 412s Unpacking girepository-tools:armhf (2.84.1-1) ... 412s Setting up native-architecture (0.2.6) ... 412s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 412s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 412s Setting up girepository-tools:armhf (2.84.1-1) ... 412s Processing triggers for man-db (2.13.0-1) ... 412s Processing triggers for libc-bin (2.41-6ubuntu1) ... 429s autopkgtest [00:45:52]: test girepository-tools: [----------------------- 432s + cd /tmp/autopkgtest.QUXAzf/autopkgtest_tmp 432s + dpkg-architecture -qDEB_HOST_GNU_TYPE 432s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 432s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 432s + dpkg-architecture -qDEB_HOST_MULTIARCH 432s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 432s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 432s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 432s typelib: GLib-2.0 432s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 432s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 432s autopkgtest [00:45:55]: test girepository-tools: -----------------------] 436s girepository-tools PASS (superficial) 436s autopkgtest [00:45:59]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 440s autopkgtest [00:46:03]: test libgio-2.0-dev-bin: preparing testbed 462s autopkgtest [00:46:25]: testbed dpkg architecture: armhf 464s autopkgtest [00:46:27]: testbed apt version: 3.0.0 468s autopkgtest [00:46:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup 469s autopkgtest [00:46:32]: testbed release detected to be: questing 477s autopkgtest [00:46:40]: updating testbed package index (apt update) 479s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 479s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 479s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 479s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 479s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.4 kB] 479s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1934 kB] 479s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [169 kB] 479s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [204 kB] 479s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 479s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.5 kB] 479s Get:11 http://ftpmaster.internal/ubuntu questing/main Sources [1390 kB] 479s Get:12 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 479s Get:13 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 480s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 480s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.2 MB] 481s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 484s Fetched 43.7 MB in 5s (8166 kB/s) 485s Reading package lists... 491s autopkgtest [00:46:54]: upgrading testbed (apt dist-upgrade and autopurge) 492s Reading package lists... 493s Building dependency tree... 493s Reading state information... 493s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 494s Starting 2 pkgProblemResolver with broken count: 0 494s Done 495s Entering ResolveByKeep 495s 495s Calculating upgrade... 496s The following packages will be upgraded: 496s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 496s libftdi1-2 libfwupd3 libnpth0t64 libnvme1t64 libpython3.13-minimal 496s libpython3.13-stdlib libsensors-config libsensors5 liburcu8t64 496s motd-news-config nano python3.13 python3.13-gdbm python3.13-minimal 496s ubuntu-pro-client ubuntu-pro-client-l10n usb.ids 496s 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 496s Need to get 11.0 MB of archives. 496s After this operation, 3722 kB disk space will be freed. 496s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 496s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 496s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 496s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 496s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 497s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 497s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 497s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 497s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 497s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 497s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 497s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 497s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 497s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 497s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 497s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 497s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 497s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 497s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 497s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 497s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 497s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 497s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 497s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libnvme1t64 armhf 1.13-2 [74.3 kB] 497s Get:25 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 497s Fetched 11.0 MB in 1s (11.1 MB/s) 497s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 497s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 497s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 498s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 498s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 498s Setting up base-files (13.7ubuntu1) ... 498s Installing new version of config file /etc/issue ... 498s Installing new version of config file /etc/issue.net ... 498s Installing new version of config file /etc/lsb-release ... 498s motd-news.service is a disabled or a static unit not running, not starting it. 499s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 499s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 499s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 499s Setting up dpkg (1.22.18ubuntu3) ... 499s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 499s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 499s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 499s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 499s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 500s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 500s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 500s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 500s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 500s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 500s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 500s Setting up libnpth0t64:armhf (1.8-3) ... 500s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 500s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 500s Unpacking distro-info-data (0.64) over (0.63) ... 500s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 500s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 500s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 501s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 501s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 501s Unpacking ed (1.21.1-1) over (1.21-1) ... 501s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 501s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 501s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 501s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 501s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 501s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 501s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 501s Unpacking nano (8.4-1) over (8.3-1) ... 501s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 501s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 501s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 501s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 501s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 501s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 501s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 501s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 502s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 502s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 502s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 502s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 502s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 502s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 502s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 502s Preparing to unpack .../15-libnvme1t64_1.13-2_armhf.deb ... 502s Unpacking libnvme1t64 (1.13-2) over (1.11.1-2) ... 502s Preparing to unpack .../16-python3.13-gdbm_3.13.3-2_armhf.deb ... 502s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 502s Setting up motd-news-config (13.7ubuntu1) ... 502s Setting up liburcu8t64:armhf (0.15.2-2) ... 502s Setting up distro-info-data (0.64) ... 502s Setting up htop (3.4.1-4) ... 502s Setting up libsensors-config (1:3.6.2-2) ... 502s Installing new version of config file /etc/sensors3.conf ... 502s Setting up libfwupd3:armhf (2.0.8-3) ... 502s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 502s Setting up libftdi1-2:armhf (1.5-10) ... 502s Setting up libnvme1t64 (1.13-2) ... 502s Setting up ed (1.21.1-1) ... 502s Setting up usb.ids (2025.04.01-1) ... 502s Setting up libsensors5:armhf (1:3.6.2-2) ... 502s Setting up libdpkg-perl (1.22.18ubuntu3) ... 502s Setting up nano (8.4-1) ... 502s Installing new version of config file /etc/nanorc ... 502s Setting up python3.13-minimal (3.13.3-2) ... 503s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 503s Setting up ubuntu-pro-client (35.1ubuntu0) ... 503s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 503s 503s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 503s 503s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 503s 505s Setting up fwupd (2.0.8-3) ... 506s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 506s fwupd.service is a disabled or a static unit not running, not starting it. 506s Setting up python3.13-gdbm (3.13.3-2) ... 506s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 506s Setting up python3.13 (3.13.3-2) ... 508s Setting up dpkg-dev (1.22.18ubuntu3) ... 508s Processing triggers for dbus (1.16.2-2ubuntu1) ... 508s Processing triggers for install-info (7.1.1-1) ... 509s Processing triggers for libc-bin (2.41-6ubuntu1) ... 509s Processing triggers for systemd (257.4-1ubuntu3) ... 509s Processing triggers for man-db (2.13.0-1) ... 509s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 509s Processing triggers for initramfs-tools (0.147ubuntu1) ... 511s Reading package lists... 512s Building dependency tree... 512s Reading state information... 513s Starting pkgProblemResolver with broken count: 0 513s Starting 2 pkgProblemResolver with broken count: 0 513s Done 514s Solving dependencies... 514s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 516s autopkgtest [00:47:19]: rebooting testbed after setup commands that affected boot 580s Reading package lists... 581s Building dependency tree... 581s Reading state information... 581s Starting pkgProblemResolver with broken count: 0 581s Starting 2 pkgProblemResolver with broken count: 0 581s Done 582s The following NEW packages will be installed: 582s libgio-2.0-dev-bin 582s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 582s Need to get 130 kB of archives. 582s After this operation, 814 kB of additional disk space will be used. 582s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 583s Fetched 130 kB in 0s (336 kB/s) 583s Selecting previously unselected package libgio-2.0-dev-bin. 583s (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 ... 63951 files and directories currently installed.) 583s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 583s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 583s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 584s Processing triggers for man-db (2.13.0-1) ... 599s autopkgtest [00:48:42]: test libgio-2.0-dev-bin: [----------------------- 601s + gdbus-codegen --help 601s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 601s [--c-namespace NAMESPACE] [--c-generate-object-manager] 601s [--c-generate-autocleanup {none,objects,all}] 601s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 601s [--generate-rst OUTFILES] [--pragma-once] 601s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 601s [--glib-min-required VERSION] 601s [--glib-max-allowed VERSION] 601s [--symbol-decorator SYMBOL_DECORATOR] 601s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 601s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 601s [--generate-c-code OUTFILES | --header | --body | 601s --interface-info-header | --interface-info-body] 601s [--output FILE | --output-directory OUTDIR] 601s FILE [FILE ...] 601s 601s D-Bus code and documentation generator 601s 601s positional arguments: 601s FILE D-Bus introspection XML file 601s 601s options: 601s -h, --help show this help message and exit 601s --interface-prefix PREFIX 601s String to strip from D-Bus interface names for code 601s and docs 601s --c-namespace NAMESPACE 601s The namespace to use for generated C code 601s --c-generate-object-manager 601s Generate a GDBusObjectManagerClient subclass when 601s generating C code 601s --c-generate-autocleanup {none,objects,all} 601s Generate autocleanup support 601s --generate-docbook OUTFILES 601s Generate Docbook in OUTFILES-org.Project.IFace.xml 601s --generate-md OUTFILES 601s Generate Markdown in OUTFILES-org.Project.IFace.md 601s --generate-rst OUTFILES 601s Generate reStructuredText in OUTFILES- 601s org.Project.IFace.rst 601s --pragma-once Use "pragma once" as the inclusion guard 601s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 601s Add annotation (may be used several times) 601s --glib-min-required VERSION 601s Minimum version of GLib to be supported by the 601s outputted code (default: 2.30) 601s --glib-max-allowed VERSION 601s Maximum version of GLib to be used by the outputted 601s code (default: current GLib version) 601s --symbol-decorator SYMBOL_DECORATOR 601s Macro used to decorate a symbol in the outputted 601s header, possibly to export symbols 601s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 601s Additional header required for decorator specified by 601s --symbol-decorator 601s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 601s Additional define required for decorator specified by 601s --symbol-decorator 601s --generate-c-code OUTFILES 601s Generate C code in OUTFILES.[ch] 601s --header Generate C headers 601s --body Generate C code 601s --interface-info-header 601s Generate GDBusInterfaceInfo C header 601s --interface-info-body 601s Generate GDBusInterfaceInfo C code 601s --output FILE Write output into the specified file 601s --output-directory OUTDIR 601s Location to output generated files 601s + glib-compile-resources --version 601s 2.84.1 601s + glib-genmarshal --version 601s glib-genmarshal version 2.84.1 601s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 601s You may redistribute copies of glib-genmarshal under the terms of 601s the GNU General Public License which can be found in the 601s GLib source package. Sources, examples and contact 601s information are available at http://www.gtk.org 601s /usr/bin/glib-gettextize (GNU glib) 2.84.1 601s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 601s This is free software; see the source for copying conditions. There is NO 601s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 601s Written by Ulrich Drepper 601s + glib-gettextize --version 601s + glib-mkenums --version 601s glib-mkenums version 2.84.1 601s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 601s You may redistribute copies of glib-mkenums under the terms of 601s the GNU General Public License which can be found in the 601s GLib source package. Sources, examples and contact 601s information are available at http://www.gtk.org 601s GObject 601s + gobject-query tree 601s + gtester --version 601s + gtester-report --version 601s gtester version 2.84.1 602s gtester-report (GLib utils) version 2.84.1. 602s autopkgtest [00:48:45]: test libgio-2.0-dev-bin: -----------------------] 605s autopkgtest [00:48:48]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 605s libgio-2.0-dev-bin PASS (superficial) 609s autopkgtest [00:48:52]: test libglib2.0-dev: preparing testbed 632s autopkgtest [00:49:15]: testbed dpkg architecture: armhf 634s autopkgtest [00:49:17]: testbed apt version: 3.0.0 638s autopkgtest [00:49:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 640s autopkgtest [00:49:23]: testbed release detected to be: questing 647s autopkgtest [00:49:30]: updating testbed package index (apt update) 649s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 649s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 649s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 649s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 650s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.4 kB] 650s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [169 kB] 650s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1934 kB] 650s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [204 kB] 650s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 651s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.5 kB] 651s Get:11 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 653s Get:12 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 653s Get:13 http://ftpmaster.internal/ubuntu questing/main Sources [1390 kB] 653s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 653s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.2 MB] 654s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 658s Fetched 43.7 MB in 8s (5199 kB/s) 659s Reading package lists... 665s autopkgtest [00:49:48]: upgrading testbed (apt dist-upgrade and autopurge) 667s Reading package lists... 667s Building dependency tree... 667s Reading state information... 668s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 668s Starting 2 pkgProblemResolver with broken count: 0 668s Done 669s Entering ResolveByKeep 669s 669s Calculating upgrade... 670s The following packages will be upgraded: 670s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 670s libftdi1-2 libfwupd3 libnpth0t64 libnvme1t64 libpython3.13-minimal 670s libpython3.13-stdlib libsensors-config libsensors5 liburcu8t64 670s motd-news-config nano python3.13 python3.13-gdbm python3.13-minimal 670s ubuntu-pro-client ubuntu-pro-client-l10n usb.ids 670s 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 670s Need to get 11.0 MB of archives. 670s After this operation, 3722 kB disk space will be freed. 670s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 670s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 670s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 670s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 670s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 670s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 671s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 671s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 671s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 671s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 671s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 671s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 671s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 671s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 671s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 671s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 671s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 671s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 671s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 671s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 671s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 671s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 671s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 671s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libnvme1t64 armhf 1.13-2 [74.3 kB] 671s Get:25 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 671s Fetched 11.0 MB in 1s (10.1 MB/s) 671s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 671s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 671s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 672s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 672s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 672s Setting up base-files (13.7ubuntu1) ... 672s Installing new version of config file /etc/issue ... 672s Installing new version of config file /etc/issue.net ... 672s Installing new version of config file /etc/lsb-release ... 672s motd-news.service is a disabled or a static unit not running, not starting it. 673s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 673s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 673s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 673s Setting up dpkg (1.22.18ubuntu3) ... 673s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 673s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 673s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 673s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 673s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 674s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 674s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 674s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 674s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 674s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 674s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 674s Setting up libnpth0t64:armhf (1.8-3) ... 674s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 674s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 674s Unpacking distro-info-data (0.64) over (0.63) ... 674s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 674s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 674s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 674s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 674s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 674s Unpacking ed (1.21.1-1) over (1.21-1) ... 675s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 675s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 675s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 675s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 675s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 675s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 675s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 675s Unpacking nano (8.4-1) over (8.3-1) ... 675s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 675s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 675s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 675s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 675s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 675s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 675s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 675s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 675s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 675s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 675s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 675s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 675s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 675s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 675s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 676s Preparing to unpack .../15-libnvme1t64_1.13-2_armhf.deb ... 676s Unpacking libnvme1t64 (1.13-2) over (1.11.1-2) ... 676s Preparing to unpack .../16-python3.13-gdbm_3.13.3-2_armhf.deb ... 676s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 676s Setting up motd-news-config (13.7ubuntu1) ... 676s Setting up liburcu8t64:armhf (0.15.2-2) ... 676s Setting up distro-info-data (0.64) ... 676s Setting up htop (3.4.1-4) ... 676s Setting up libsensors-config (1:3.6.2-2) ... 676s Installing new version of config file /etc/sensors3.conf ... 676s Setting up libfwupd3:armhf (2.0.8-3) ... 676s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 676s Setting up libftdi1-2:armhf (1.5-10) ... 676s Setting up libnvme1t64 (1.13-2) ... 676s Setting up ed (1.21.1-1) ... 676s Setting up usb.ids (2025.04.01-1) ... 676s Setting up libsensors5:armhf (1:3.6.2-2) ... 676s Setting up libdpkg-perl (1.22.18ubuntu3) ... 676s Setting up nano (8.4-1) ... 676s Installing new version of config file /etc/nanorc ... 676s Setting up python3.13-minimal (3.13.3-2) ... 677s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 677s Setting up ubuntu-pro-client (35.1ubuntu0) ... 677s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 677s 677s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 677s 677s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 677s 679s Setting up fwupd (2.0.8-3) ... 679s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 679s fwupd.service is a disabled or a static unit not running, not starting it. 679s Setting up python3.13-gdbm (3.13.3-2) ... 679s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 679s Setting up python3.13 (3.13.3-2) ... 681s Setting up dpkg-dev (1.22.18ubuntu3) ... 681s Processing triggers for dbus (1.16.2-2ubuntu1) ... 681s Processing triggers for install-info (7.1.1-1) ... 681s Processing triggers for libc-bin (2.41-6ubuntu1) ... 681s Processing triggers for systemd (257.4-1ubuntu3) ... 681s Processing triggers for man-db (2.13.0-1) ... 683s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 683s Processing triggers for initramfs-tools (0.147ubuntu1) ... 685s Reading package lists... 685s Building dependency tree... 685s Reading state information... 686s Starting pkgProblemResolver with broken count: 0 687s Starting 2 pkgProblemResolver with broken count: 0 687s Done 687s Solving dependencies... 687s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 689s autopkgtest [00:50:12]: rebooting testbed after setup commands that affected boot 756s Reading package lists... 757s Building dependency tree... 757s Reading state information... 757s Starting pkgProblemResolver with broken count: 0 757s Starting 2 pkgProblemResolver with broken count: 0 757s Done 758s The following NEW packages will be installed: 758s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 758s cpp-arm-linux-gnueabihf g++ g++-14 g++-14-arm-linux-gnueabihf 758s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 758s gcc-arm-linux-gnueabihf gir1.2-glib-2.0-dev girepository-tools libasan8 758s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 758s libgcc-14-dev libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 758s libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 758s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 758s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 758s libsysprof-capture-4-dev libubsan1 linux-libc-dev native-architecture 758s pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 758s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 758s Need to get 56.0 MB of archives. 758s After this operation, 176 MB of additional disk space will be used. 758s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libc-dev-bin armhf 2.41-6ubuntu1 [21.7 kB] 759s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf linux-libc-dev armhf 6.14.0-15.15 [1687 kB] 759s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 759s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 759s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libc6-dev armhf 2.41-6ubuntu1 [1396 kB] 759s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf libisl23 armhf 0.27-1 [546 kB] 759s Get:7 http://ftpmaster.internal/ubuntu questing/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 759s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [9221 kB] 759s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf cpp-14 armhf 14.2.0-19ubuntu2 [1032 B] 759s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 759s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 759s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf libcc1-0 armhf 15-20250404-0ubuntu1 [43.3 kB] 759s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libgomp1 armhf 15-20250404-0ubuntu1 [128 kB] 759s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libasan8 armhf 15-20250404-0ubuntu1 [2951 kB] 759s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libubsan1 armhf 15-20250404-0ubuntu1 [1188 kB] 759s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libgcc-14-dev armhf 14.2.0-19ubuntu2 [897 kB] 760s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [18.0 MB] 760s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf gcc-14 armhf 14.2.0-19ubuntu2 [510 kB] 760s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 760s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 760s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libstdc++-14-dev armhf 14.2.0-19ubuntu2 [2576 kB] 760s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [10.5 MB] 760s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf g++-14 armhf 14.2.0-19ubuntu2 [23.0 kB] 760s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 760s Get:25 http://ftpmaster.internal/ubuntu questing/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 760s Get:26 http://ftpmaster.internal/ubuntu questing/main armhf build-essential armhf 12.12ubuntu1 [5088 B] 760s Get:27 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 760s Get:28 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 760s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 760s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 760s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libffi-dev armhf 3.4.7-1 [57.2 kB] 761s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf uuid-dev armhf 2.40.2-14ubuntu1 [52.6 kB] 761s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf libblkid-dev armhf 2.40.2-14ubuntu1 [218 kB] 761s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf libsepol-dev armhf 3.7-1 [381 kB] 761s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 761s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 761s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 761s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 761s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf libselinux1-dev armhf 3.7-3ubuntu3 [160 kB] 761s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf libmount-dev armhf 2.40.2-14ubuntu1 [34.6 kB] 761s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 761s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 761s Get:43 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 761s Get:44 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 761s Get:45 http://ftpmaster.internal/ubuntu questing/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 761s Get:46 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev armhf 2.84.1-1 [1714 kB] 761s Get:47 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 761s Get:48 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-bin armhf 2.84.1-1 [92.7 kB] 761s Get:49 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev-bin armhf 2.84.1-1 [18.1 kB] 761s Get:50 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev armhf 2.84.1-1 [18.9 kB] 761s Fetched 56.0 MB in 3s (21.5 MB/s) 761s Selecting previously unselected package libc-dev-bin. 761s (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 ... 63951 files and directories currently installed.) 761s Preparing to unpack .../00-libc-dev-bin_2.41-6ubuntu1_armhf.deb ... 761s Unpacking libc-dev-bin (2.41-6ubuntu1) ... 761s Selecting previously unselected package linux-libc-dev:armhf. 761s Preparing to unpack .../01-linux-libc-dev_6.14.0-15.15_armhf.deb ... 761s Unpacking linux-libc-dev:armhf (6.14.0-15.15) ... 762s Selecting previously unselected package libcrypt-dev:armhf. 762s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 762s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 762s Selecting previously unselected package rpcsvc-proto. 762s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 762s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 762s Selecting previously unselected package libc6-dev:armhf. 762s Preparing to unpack .../04-libc6-dev_2.41-6ubuntu1_armhf.deb ... 762s Unpacking libc6-dev:armhf (2.41-6ubuntu1) ... 762s Selecting previously unselected package libisl23:armhf. 762s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 762s Unpacking libisl23:armhf (0.27-1) ... 762s Selecting previously unselected package libmpc3:armhf. 762s Preparing to unpack .../06-libmpc3_1.3.1-1build2_armhf.deb ... 762s Unpacking libmpc3:armhf (1.3.1-1build2) ... 762s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 762s Preparing to unpack .../07-cpp-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 762s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 762s Selecting previously unselected package cpp-14. 762s Preparing to unpack .../08-cpp-14_14.2.0-19ubuntu2_armhf.deb ... 762s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 762s Selecting previously unselected package cpp-arm-linux-gnueabihf. 762s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 762s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 762s Selecting previously unselected package cpp. 762s Preparing to unpack .../10-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 762s Unpacking cpp (4:14.2.0-1ubuntu1) ... 762s Selecting previously unselected package libcc1-0:armhf. 762s Preparing to unpack .../11-libcc1-0_15-20250404-0ubuntu1_armhf.deb ... 762s Unpacking libcc1-0:armhf (15-20250404-0ubuntu1) ... 762s Selecting previously unselected package libgomp1:armhf. 762s Preparing to unpack .../12-libgomp1_15-20250404-0ubuntu1_armhf.deb ... 762s Unpacking libgomp1:armhf (15-20250404-0ubuntu1) ... 763s Selecting previously unselected package libasan8:armhf. 763s Preparing to unpack .../13-libasan8_15-20250404-0ubuntu1_armhf.deb ... 763s Unpacking libasan8:armhf (15-20250404-0ubuntu1) ... 763s Selecting previously unselected package libubsan1:armhf. 763s Preparing to unpack .../14-libubsan1_15-20250404-0ubuntu1_armhf.deb ... 763s Unpacking libubsan1:armhf (15-20250404-0ubuntu1) ... 763s Selecting previously unselected package libgcc-14-dev:armhf. 763s Preparing to unpack .../15-libgcc-14-dev_14.2.0-19ubuntu2_armhf.deb ... 763s Unpacking libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 763s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 763s Preparing to unpack .../16-gcc-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 763s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 763s Selecting previously unselected package gcc-14. 763s Preparing to unpack .../17-gcc-14_14.2.0-19ubuntu2_armhf.deb ... 763s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 763s Selecting previously unselected package gcc-arm-linux-gnueabihf. 763s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 763s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 763s Selecting previously unselected package gcc. 763s Preparing to unpack .../19-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 763s Unpacking gcc (4:14.2.0-1ubuntu1) ... 763s Selecting previously unselected package libstdc++-14-dev:armhf. 763s Preparing to unpack .../20-libstdc++-14-dev_14.2.0-19ubuntu2_armhf.deb ... 763s Unpacking libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 764s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 764s Preparing to unpack .../21-g++-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 764s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 764s Selecting previously unselected package g++-14. 764s Preparing to unpack .../22-g++-14_14.2.0-19ubuntu2_armhf.deb ... 764s Unpacking g++-14 (14.2.0-19ubuntu2) ... 764s Selecting previously unselected package g++-arm-linux-gnueabihf. 764s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 764s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 764s Selecting previously unselected package g++. 764s Preparing to unpack .../24-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 764s Unpacking g++ (4:14.2.0-1ubuntu1) ... 764s Selecting previously unselected package build-essential. 764s Preparing to unpack .../25-build-essential_12.12ubuntu1_armhf.deb ... 764s Unpacking build-essential (12.12ubuntu1) ... 764s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 764s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 764s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 764s Selecting previously unselected package native-architecture. 764s Preparing to unpack .../27-native-architecture_0.2.6_all.deb ... 764s Unpacking native-architecture (0.2.6) ... 764s Selecting previously unselected package libgirepository-2.0-0:armhf. 764s Preparing to unpack .../28-libgirepository-2.0-0_2.84.1-1_armhf.deb ... 764s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 764s Selecting previously unselected package girepository-tools:armhf. 764s Preparing to unpack .../29-girepository-tools_2.84.1-1_armhf.deb ... 764s Unpacking girepository-tools:armhf (2.84.1-1) ... 764s Selecting previously unselected package libffi-dev:armhf. 764s Preparing to unpack .../30-libffi-dev_3.4.7-1_armhf.deb ... 764s Unpacking libffi-dev:armhf (3.4.7-1) ... 764s Selecting previously unselected package uuid-dev:armhf. 764s Preparing to unpack .../31-uuid-dev_2.40.2-14ubuntu1_armhf.deb ... 764s Unpacking uuid-dev:armhf (2.40.2-14ubuntu1) ... 764s Selecting previously unselected package libblkid-dev:armhf. 764s Preparing to unpack .../32-libblkid-dev_2.40.2-14ubuntu1_armhf.deb ... 764s Unpacking libblkid-dev:armhf (2.40.2-14ubuntu1) ... 764s Selecting previously unselected package libsepol-dev:armhf. 764s Preparing to unpack .../33-libsepol-dev_3.7-1_armhf.deb ... 764s Unpacking libsepol-dev:armhf (3.7-1) ... 765s Selecting previously unselected package libpcre2-16-0:armhf. 765s Preparing to unpack .../34-libpcre2-16-0_10.45-1_armhf.deb ... 765s Unpacking libpcre2-16-0:armhf (10.45-1) ... 765s Selecting previously unselected package libpcre2-32-0:armhf. 765s Preparing to unpack .../35-libpcre2-32-0_10.45-1_armhf.deb ... 765s Unpacking libpcre2-32-0:armhf (10.45-1) ... 765s Selecting previously unselected package libpcre2-posix3:armhf. 765s Preparing to unpack .../36-libpcre2-posix3_10.45-1_armhf.deb ... 765s Unpacking libpcre2-posix3:armhf (10.45-1) ... 765s Selecting previously unselected package libpcre2-dev:armhf. 765s Preparing to unpack .../37-libpcre2-dev_10.45-1_armhf.deb ... 765s Unpacking libpcre2-dev:armhf (10.45-1) ... 765s Selecting previously unselected package libselinux1-dev:armhf. 765s Preparing to unpack .../38-libselinux1-dev_3.7-3ubuntu3_armhf.deb ... 765s Unpacking libselinux1-dev:armhf (3.7-3ubuntu3) ... 765s Selecting previously unselected package libmount-dev:armhf. 765s Preparing to unpack .../39-libmount-dev_2.40.2-14ubuntu1_armhf.deb ... 765s Unpacking libmount-dev:armhf (2.40.2-14ubuntu1) ... 765s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 765s Preparing to unpack .../40-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 765s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 765s Selecting previously unselected package libpkgconf3:armhf. 765s Preparing to unpack .../41-libpkgconf3_1.8.1-4_armhf.deb ... 765s Unpacking libpkgconf3:armhf (1.8.1-4) ... 765s Selecting previously unselected package pkgconf-bin. 765s Preparing to unpack .../42-pkgconf-bin_1.8.1-4_armhf.deb ... 765s Unpacking pkgconf-bin (1.8.1-4) ... 765s Selecting previously unselected package pkgconf:armhf. 765s Preparing to unpack .../43-pkgconf_1.8.1-4_armhf.deb ... 765s Unpacking pkgconf:armhf (1.8.1-4) ... 765s Selecting previously unselected package zlib1g-dev:armhf. 765s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 765s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 765s Selecting previously unselected package libgio-2.0-dev:armhf. 765s Preparing to unpack .../45-libgio-2.0-dev_2.84.1-1_armhf.deb ... 765s Unpacking libgio-2.0-dev:armhf (2.84.1-1) ... 765s Selecting previously unselected package libgio-2.0-dev-bin. 765s Preparing to unpack .../46-libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 765s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 765s Selecting previously unselected package libglib2.0-bin. 765s Preparing to unpack .../47-libglib2.0-bin_2.84.1-1_armhf.deb ... 765s Unpacking libglib2.0-bin (2.84.1-1) ... 765s Selecting previously unselected package libglib2.0-dev-bin. 765s Preparing to unpack .../48-libglib2.0-dev-bin_2.84.1-1_armhf.deb ... 765s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 765s Selecting previously unselected package libglib2.0-dev:armhf. 765s Preparing to unpack .../49-libglib2.0-dev_2.84.1-1_armhf.deb ... 765s Unpacking libglib2.0-dev:armhf (2.84.1-1) ... 765s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 766s Setting up native-architecture (0.2.6) ... 766s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 766s Setting up linux-libc-dev:armhf (6.14.0-15.15) ... 766s Setting up libglib2.0-bin (2.84.1-1) ... 766s Setting up libgomp1:armhf (15-20250404-0ubuntu1) ... 766s Setting up libffi-dev:armhf (3.4.7-1) ... 766s Setting up libpcre2-16-0:armhf (10.45-1) ... 766s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 766s Setting up libpcre2-32-0:armhf (10.45-1) ... 766s Setting up libpkgconf3:armhf (1.8.1-4) ... 766s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 766s Setting up libmpc3:armhf (1.3.1-1build2) ... 766s Setting up libsepol-dev:armhf (3.7-1) ... 766s Setting up pkgconf-bin (1.8.1-4) ... 766s Setting up libubsan1:armhf (15-20250404-0ubuntu1) ... 766s Setting up libpcre2-posix3:armhf (10.45-1) ... 766s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 766s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 766s Setting up libasan8:armhf (15-20250404-0ubuntu1) ... 766s Setting up libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 766s Setting up libisl23:armhf (0.27-1) ... 766s Setting up libc-dev-bin (2.41-6ubuntu1) ... 766s Setting up libcc1-0:armhf (15-20250404-0ubuntu1) ... 766s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 766s Setting up girepository-tools:armhf (2.84.1-1) ... 766s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 766s Setting up pkgconf:armhf (1.8.1-4) ... 766s Setting up cpp-14 (14.2.0-19ubuntu2) ... 766s Setting up libc6-dev:armhf (2.41-6ubuntu1) ... 766s Setting up libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 766s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 766s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 766s Setting up libglib2.0-dev-bin (2.84.1-1) ... 766s Setting up g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 766s Setting up libpcre2-dev:armhf (10.45-1) ... 766s Setting up libselinux1-dev:armhf (3.7-3ubuntu3) ... 766s Setting up gcc-14 (14.2.0-19ubuntu2) ... 766s Setting up uuid-dev:armhf (2.40.2-14ubuntu1) ... 766s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 766s Setting up cpp (4:14.2.0-1ubuntu1) ... 766s Setting up g++-14 (14.2.0-19ubuntu2) ... 766s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 766s Setting up libblkid-dev:armhf (2.40.2-14ubuntu1) ... 766s Setting up gcc (4:14.2.0-1ubuntu1) ... 766s Setting up g++ (4:14.2.0-1ubuntu1) ... 766s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 766s Setting up build-essential (12.12ubuntu1) ... 766s Setting up libmount-dev:armhf (2.40.2-14ubuntu1) ... 766s Setting up libgio-2.0-dev:armhf (2.84.1-1) ... 766s Processing triggers for install-info (7.1.1-1) ... 766s Processing triggers for libc-bin (2.41-6ubuntu1) ... 766s Processing triggers for man-db (2.13.0-1) ... 767s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 767s No schema files found: doing nothing. 767s Setting up libglib2.0-dev:armhf (2.84.1-1) ... 789s autopkgtest [00:51:52]: test libglib2.0-dev: [----------------------- 792s + debian/tests/build 792s + mode=dynamic 792s + getopt -o --long static -n debian/tests/build -- 792s + getopt_temp= -- 792s + eval set -- -- 792s + set -- -- 792s + true 792s + shift 792s + break 792s + mktemp -d 792s + WORKDIR=/tmp/tmp.otX1QuxNw0 792s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 792s + cd /tmp/tmp.otX1QuxNw0 792s + [ -n ] 792s + CROSS_COMPILE= 792s + cat 792s + cat 792s + cat 792s + cat 792s + cat 792s + cat 792s + cflags= 792s + pcflags= 792s + packages=glib-2.0 792s + pkg-config --cflags --libs glib-2.0 792s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 792s + echo build (glib, dynamic): OK 792s + [ -x glib-dynamic ] 792s + foo=bar ./glib-dynamic 792s build (glib, dynamic): OK 792s run (glib, dynamic): OK 792s + echo run (glib, dynamic): OK 792s + cflags= 792s + pcflags= 792s + packages=gobject-2.0 792s + pkg-config --cflags --libs gobject-2.0 792s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 792s + echo build (gobject, dynamic): OK 792s + [ -x gobject-dynamic ] 792s + foo=bar ./gobject-dynamic 792s + echo run (gobject, dynamic): OK 792s + cflags= 792s + pcflags= 792s + packages=gio-2.0 792s + pkg-config --cflags --libs gio-2.0 792s build (gobject, dynamic): OK 792s run (gobject, dynamic): OK 792s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 792s + echo build (gio, dynamic): OK 792s + [ -x gio-dynamic ] 792s + foo=bar ./gio-dynamic 792s build (gio, dynamic): OK 792s + echo run (gio, dynamic): OK 792s + cflags= 792s + pcflags= 792s + packages=gio-unix-2.0 792s + pkg-config --cflags --libs gio-unix-2.0 792s run (gio, dynamic): OK 792s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 792s + echo build (gio-unix, dynamic): OK 792s + [ -x gio-unix-dynamic ] 792s + foo=bar ./gio-unix-dynamic 792s + echo run (gio-unix, dynamic): OK 792s + cflags= 792s + pcflags= 792s + packages=gmodule-2.0 792s + pkg-config --cflags --libs gmodule-2.0 792s build (gio-unix, dynamic): OK 792s run (gio-unix, dynamic): OK 792s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 792s + echo build (gmodule, dynamic): OK 792s + [ -x gmodule-dynamic ] 792s + foo=bar ./gmodule-dynamic 792s build (gmodule, dynamic): OK 792s run (gmodule, dynamic): OK 792s + echo run (gmodule, dynamic): OK 792s + cflags= 792s + pcflags= 792s + packages=gthread-2.0 792s + pkg-config --cflags --libs gthread-2.0 792s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 793s build (gthread, dynamic): OK 793s + echo build (gthread, dynamic): OK 793s + [ -x gthread-dynamic ] 793s + foo=bar ./gthread-dynamic 793s run (gthread, dynamic): OK 793s + echo run (gthread, dynamic): OK 793s + rm -rf /tmp/tmp.otX1QuxNw0 793s + debian/tests/build-static 793s + mode=dynamic 793s + getopt -o --long static -n debian/tests/build -- --static 793s + getopt_temp= --static -- 793s + eval set -- --static -- 793s + set -- --static -- 793s + true 793s + mode=static 793s + shift 793s + continue 793s + true 793s + shift 793s + break 793s + mktemp -d 793s + WORKDIR=/tmp/tmp.zxW2jWvqFw 793s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 793s + cd /tmp/tmp.zxW2jWvqFw 793s + [ -n ] 793s + CROSS_COMPILE= 793s + cat 793s + cat 793s + cat 793s + cat 793s + cat 793s + cat 793s + cflags= 793s + pcflags= 793s + packages=glib-2.0 793s + cflags=-static 793s + pcflags=--static 793s + pkg-config --static --cflags --libs glib-2.0 793s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 793s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 793s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s + echo build (glib, static): OK 793s + [ -x glib-static ] 793s + foo=bar ./glib-static 793s build (glib, static): OK 793s + echo run (glib, static): OK 793s + cflags= 793s + pcflags= 793s + packages=gobject-2.0 793s + cflags=-static 793s + pcflags=--static 793s run (glib, static): OK 793s + pkg-config --static --cflags --libs gobject-2.0 793s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 793s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 793s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s + echo build (gobject, static): OK 793s + [ -x gobject-static ] 793s + foo=bar ./gobject-static 793s build (gobject, static): OK 793s run (gobject, static): OK 793s + echo run (gobject, static): OK 793s + cflags= 793s + pcflags= 793s + packages=gio-2.0 793s + cflags=-static 793s + pcflags=--static 793s + continue 793s + cflags= 793s + pcflags= 793s + packages=gio-unix-2.0 793s + cflags=-static 793s + pcflags=--static 793s + continue 793s + cflags= 793s + pcflags= 793s + packages=gmodule-2.0 793s + cflags=-static 793s + pcflags=--static 793s + pkg-config --static --cflags --libs gmodule-2.0 793s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 793s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 793s (.text+0x412): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 793s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s build (gmodule, static): OK 793s + echo build (gmodule, static): OK 793s + [ -x gmodule-static ] 793s + foo=bar ./gmodule-static 793s + echo run (gmodule, static): OK 793s + cflags= 793s + pcflags= 793s + packages=gthread-2.0 793s + cflags=-static 793s + pcflags=--static 793s + pkg-config --static --cflags --libs gthread-2.0 793s run (gmodule, static): OK 793s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 793s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 793s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 793s + echo build (gthread, static): OK 793s + [ -x gthread-static ] 793s + foo=bar ./gthread-static 793s build (gthread, static): OK 793s run (gthread, static): OK 793s + echo run (gthread, static): OK 793s + rm -rf /tmp/tmp.zxW2jWvqFw 793s + debian/tests/girepository-tools 793s + cd /tmp/autopkgtest.QUXAzf/autopkgtest_tmp 793s + dpkg-architecture -qDEB_HOST_GNU_TYPE 793s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 793s + dpkg-architecture -qDEB_HOST_MULTIARCH 793s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 793s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 793s typelib: GLib-2.0 793s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 793s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 794s + debian/tests/libgio-2.0-dev-bin 794s + gdbus-codegen --help 794s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 794s [--c-namespace NAMESPACE] [--c-generate-object-manager] 794s [--c-generate-autocleanup {none,objects,all}] 794s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 794s [--generate-rst OUTFILES] [--pragma-once] 794s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 794s [--glib-min-required VERSION] 794s [--glib-max-allowed VERSION] 794s [--symbol-decorator SYMBOL_DECORATOR] 794s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 794s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 794s [--generate-c-code OUTFILES | --header | --body | 794s --interface-info-header | --interface-info-body] 794s [--output FILE | --output-directory OUTDIR] 794s FILE [FILE ...] 794s 794s D-Bus code and documentation generator 794s 794s positional arguments: 794s FILE D-Bus introspection XML file 794s 794s options: 794s -h, --help show this help message and exit 794s --interface-prefix PREFIX 794s String to strip from D-Bus interface names for code 794s and docs 794s --c-namespace NAMESPACE 794s The namespace to use for generated C code 794s --c-generate-object-manager 794s Generate a GDBusObjectManagerClient subclass when 794s generating C code 794s --c-generate-autocleanup {none,objects,all} 794s Generate autocleanup support 794s --generate-docbook OUTFILES 794s Generate Docbook in OUTFILES-org.Project.IFace.xml 794s --generate-md OUTFILES 794s Generate Markdown in OUTFILES-org.Project.IFace.md 794s --generate-rst OUTFILES 794s Generate reStructuredText in OUTFILES- 794s org.Project.IFace.rst 794s --pragma-once Use "pragma once" as the inclusion guard 794s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 794s Add annotation (may be used several times) 794s --glib-min-required VERSION 794s Minimum version of GLib to be supported by the 794s outputted code (default: 2.30) 794s --glib-max-allowed VERSION 794s Maximum version of GLib to be used by the outputted 794s code (default: current GLib version) 794s --symbol-decorator SYMBOL_DECORATOR 794s Macro used to decorate a symbol in the outputted 794s header, possibly to export symbols 794s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 794s Additional header required for decorator specified by 794s --symbol-decorator 794s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 794s Additional define required for decorator specified by 794s --symbol-decorator 794s --generate-c-code OUTFILES 794s Generate C code in OUTFILES.[ch] 794s --header Generate C headers 794s --body Generate C code 794s --interface-info-header 794s Generate GDBusInterfaceInfo C header 794s --interface-info-body 794s Generate GDBusInterfaceInfo C code 794s --output FILE Write output into the specified file 794s --output-directory OUTDIR 794s Location to output generated files 794s + glib-compile-resources --version 794s + glib-genmarshal --version 794s 2.84.1 794s glib-genmarshal version 2.84.1 794s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 794s You may redistribute copies of glib-genmarshal under the terms of 794s the GNU General Public License which can be found in the 794s GLib source package. Sources, examples and contact 794s information are available at http://www.gtk.org 794s /usr/bin/glib-gettextize (GNU glib) 2.84.1 794s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 794s This is free software; see the source for copying conditions. There is NO 794s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 794s Written by Ulrich Drepper 794s + glib-gettextize --version 794s + glib-mkenums --version 794s glib-mkenums version 2.84.1 794s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 794s You may redistribute copies of glib-mkenums under the terms of 794s the GNU General Public License which can be found in the 794s GLib source package. Sources, examples and contact 794s information are available at http://www.gtk.org 794s GObject 794s + gobject-query tree 794s gtester version 2.84.1 794s + gtester --version 794s + gtester-report --version 794s gtester-report (GLib utils) version 2.84.1. 794s + cd /tmp/autopkgtest.QUXAzf/autopkgtest_tmp 794s + dpkg-architecture -qDEB_HOST_MULTIARCH 794s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 794s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 794s + gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 794s typelib: GLib-2.0 794s + gi-decompile-typelib -o GLib.gir GLib.typelib 794s autopkgtest [00:51:57]: test libglib2.0-dev: -----------------------] 798s autopkgtest [00:52:01]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 798s libglib2.0-dev PASS (superficial) 803s autopkgtest [00:52:06]: test installed-tests: preparing testbed 827s autopkgtest [00:52:30]: testbed dpkg architecture: armhf 829s autopkgtest [00:52:32]: testbed apt version: 3.0.0 833s autopkgtest [00:52:36]: @@@@@@@@@@@@@@@@@@@@ test bed setup 835s autopkgtest [00:52:38]: testbed release detected to be: questing 843s autopkgtest [00:52:46]: updating testbed package index (apt update) 845s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 845s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 845s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 845s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 845s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.4 kB] 845s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [169 kB] 845s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1934 kB] 845s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [204 kB] 845s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 845s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.5 kB] 845s Get:11 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 845s Get:12 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 846s Get:13 http://ftpmaster.internal/ubuntu questing/main Sources [1390 kB] 846s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 846s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.2 MB] 846s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 850s Fetched 43.7 MB in 5s (8300 kB/s) 851s Reading package lists... 856s autopkgtest [00:52:59]: upgrading testbed (apt dist-upgrade and autopurge) 858s Reading package lists... 858s Building dependency tree... 858s Reading state information... 859s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 859s Starting 2 pkgProblemResolver with broken count: 0 859s Done 860s Entering ResolveByKeep 860s 860s Calculating upgrade... 861s The following packages will be upgraded: 861s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 861s libftdi1-2 libfwupd3 libnpth0t64 libnvme1t64 libpython3.13-minimal 861s libpython3.13-stdlib libsensors-config libsensors5 liburcu8t64 861s motd-news-config nano python3.13 python3.13-gdbm python3.13-minimal 861s ubuntu-pro-client ubuntu-pro-client-l10n usb.ids 861s 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 861s Need to get 11.0 MB of archives. 861s After this operation, 3722 kB disk space will be freed. 861s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 861s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 861s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 862s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 862s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 862s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 862s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 862s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 862s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 862s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 862s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 862s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 862s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 862s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 862s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 862s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 862s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 862s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 862s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 862s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 862s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 862s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 862s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 862s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libnvme1t64 armhf 1.13-2 [74.3 kB] 862s Get:25 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 862s Fetched 11.0 MB in 1s (10.4 MB/s) 863s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 863s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 863s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 863s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 863s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 863s Setting up base-files (13.7ubuntu1) ... 863s Installing new version of config file /etc/issue ... 863s Installing new version of config file /etc/issue.net ... 863s Installing new version of config file /etc/lsb-release ... 864s motd-news.service is a disabled or a static unit not running, not starting it. 864s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 864s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 864s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 864s Setting up dpkg (1.22.18ubuntu3) ... 864s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 864s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 864s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 864s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 864s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 864s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 864s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 865s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 865s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 865s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 865s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 865s Setting up libnpth0t64:armhf (1.8-3) ... 865s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 865s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 865s Unpacking distro-info-data (0.64) over (0.63) ... 865s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 865s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 865s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 865s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 865s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 865s Unpacking ed (1.21.1-1) over (1.21-1) ... 865s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 865s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 865s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 865s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 865s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 865s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 865s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 865s Unpacking nano (8.4-1) over (8.3-1) ... 866s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 866s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 866s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 866s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 866s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 866s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 866s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 866s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 866s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 866s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 866s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 866s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 866s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 866s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 866s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 866s Preparing to unpack .../15-libnvme1t64_1.13-2_armhf.deb ... 866s Unpacking libnvme1t64 (1.13-2) over (1.11.1-2) ... 866s Preparing to unpack .../16-python3.13-gdbm_3.13.3-2_armhf.deb ... 866s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 866s Setting up motd-news-config (13.7ubuntu1) ... 866s Setting up liburcu8t64:armhf (0.15.2-2) ... 866s Setting up distro-info-data (0.64) ... 866s Setting up htop (3.4.1-4) ... 866s Setting up libsensors-config (1:3.6.2-2) ... 866s Installing new version of config file /etc/sensors3.conf ... 866s Setting up libfwupd3:armhf (2.0.8-3) ... 866s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 866s Setting up libftdi1-2:armhf (1.5-10) ... 866s Setting up libnvme1t64 (1.13-2) ... 866s Setting up ed (1.21.1-1) ... 866s Setting up usb.ids (2025.04.01-1) ... 866s Setting up libsensors5:armhf (1:3.6.2-2) ... 866s Setting up libdpkg-perl (1.22.18ubuntu3) ... 866s Setting up nano (8.4-1) ... 866s Installing new version of config file /etc/nanorc ... 866s Setting up python3.13-minimal (3.13.3-2) ... 867s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 867s Setting up ubuntu-pro-client (35.1ubuntu0) ... 867s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 867s 868s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 868s 868s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 868s 869s Setting up fwupd (2.0.8-3) ... 870s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 870s fwupd.service is a disabled or a static unit not running, not starting it. 870s Setting up python3.13-gdbm (3.13.3-2) ... 870s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 870s Setting up python3.13 (3.13.3-2) ... 871s Setting up dpkg-dev (1.22.18ubuntu3) ... 871s Processing triggers for dbus (1.16.2-2ubuntu1) ... 871s Processing triggers for install-info (7.1.1-1) ... 871s Processing triggers for libc-bin (2.41-6ubuntu1) ... 871s Processing triggers for systemd (257.4-1ubuntu3) ... 871s Processing triggers for man-db (2.13.0-1) ... 873s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 873s Processing triggers for initramfs-tools (0.147ubuntu1) ... 875s Reading package lists... 875s Building dependency tree... 875s Reading state information... 876s Starting pkgProblemResolver with broken count: 0 876s Starting 2 pkgProblemResolver with broken count: 0 876s Done 876s Solving dependencies... 877s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 879s autopkgtest [00:53:22]: rebooting testbed after setup commands that affected boot 943s Reading package lists... 943s Building dependency tree... 943s Reading state information... 943s Starting pkgProblemResolver with broken count: 0 944s Starting 2 pkgProblemResolver with broken count: 0 944s Done 944s The following NEW packages will be installed: 944s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 944s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 944s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 944s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 944s libllvm19 libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 944s libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 944s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 944s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 944s native-architecture python3-dbusmock tzdata-legacy x11-common x11-xkb-utils 944s xserver-common xvfb 945s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 945s Need to get 42.7 MB of archives. 945s After this operation, 195 MB of additional disk space will be used. 945s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dbus-x11 armhf 1.16.2-2ubuntu1 [22.7 kB] 945s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf desktop-file-utils armhf 0.28-1 [48.5 kB] 945s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 945s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 945s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 945s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 945s Get:7 http://ftpmaster.internal/ubuntu questing/universe armhf gnome-desktop-testing armhf 2021.1-4 [16.2 kB] 945s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libfontenc1 armhf 1:1.1.8-1build1 [11.5 kB] 945s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 945s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf libwayland-server0 armhf 1.23.1-3 [30.3 kB] 945s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf libllvm19 armhf 1:19.1.7-3ubuntu1 [27.8 MB] 946s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf libx11-xcb1 armhf 2:1.8.10-2 [7902 B] 946s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-dri3-0 armhf 1.17.0-2 [7120 B] 946s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-present0 armhf 1.17.0-2 [5940 B] 946s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-randr0 armhf 1.17.0-2 [17.0 kB] 946s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-sync1 armhf 1.17.0-2 [8732 B] 946s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-xfixes0 armhf 1.17.0-2 [10.0 kB] 946s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf libxshmfence1 armhf 1.3.3-1 [4948 B] 946s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf mesa-libgallium armhf 25.0.3-1ubuntu2 [8260 kB] 946s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf libgbm1 armhf 25.0.3-1ubuntu2 [29.0 kB] 946s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 946s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf libvulkan1 armhf 1.4.304.0-1 [127 kB] 946s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libgl1-mesa-dri armhf 25.0.3-1ubuntu2 [32.0 kB] 946s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-bin armhf 2.84.1-1 [92.7 kB] 946s Get:25 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev-bin armhf 2.84.1-1 [18.1 kB] 946s Get:26 http://ftpmaster.internal/ubuntu questing/universe armhf python3-dbusmock all 0.34.3-1 [92.4 kB] 946s Get:27 http://ftpmaster.internal/ubuntu questing/main armhf tzdata-legacy all 2025b-1ubuntu1 [99.2 kB] 946s Get:28 http://ftpmaster.internal/ubuntu questing/universe armhf libglib2.0-tests armhf 2.84.1-1 [2358 kB] 946s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-glx0 armhf 1.17.0-2 [22.6 kB] 946s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 946s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libxxf86vm1 armhf 1:1.1.4-1build4 [8068 B] 946s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf libglx-mesa0 armhf 25.0.3-1ubuntu2 [120 kB] 946s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf x11-common all 1:7.7+23ubuntu4 [21.8 kB] 946s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 946s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 946s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libsm6 armhf 2:1.2.4-1 [15.1 kB] 946s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 946s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libxmu6 armhf 2:1.1.3-3build2 [40.4 kB] 946s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf libxpm4 armhf 1:3.5.17-1build2 [30.1 kB] 946s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf libxaw7 armhf 2:1.0.16-1 [154 kB] 946s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf libxfont2 armhf 1:2.0.6-1build1 [80.3 kB] 946s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf libxkbfile1 armhf 1:1.1.0-1build4 [60.0 kB] 946s Get:43 http://ftpmaster.internal/ubuntu questing/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 946s Get:44 http://ftpmaster.internal/ubuntu questing/main armhf libxrandr2 armhf 2:1.5.4-1 [15.8 kB] 946s Get:45 http://ftpmaster.internal/ubuntu questing/main armhf x11-xkb-utils armhf 7.7+9 [159 kB] 946s Get:46 http://ftpmaster.internal/ubuntu questing/main armhf xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 946s Get:47 http://ftpmaster.internal/ubuntu questing/main armhf libglvnd0 armhf 1.7.0-1build1 [83.7 kB] 946s Get:48 http://ftpmaster.internal/ubuntu questing/main armhf libglx0 armhf 1.7.0-1build1 [39.3 kB] 946s Get:49 http://ftpmaster.internal/ubuntu questing/main armhf libgl1 armhf 1.7.0-1build1 [105 kB] 946s Get:50 http://ftpmaster.internal/ubuntu questing/universe armhf xvfb armhf 2:21.1.16-1ubuntu1 [732 kB] 947s Fetched 42.7 MB in 2s (21.7 MB/s) 947s Selecting previously unselected package dbus-x11. 947s (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 ... 63951 files and directories currently installed.) 947s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_armhf.deb ... 947s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 947s Selecting previously unselected package desktop-file-utils. 947s Preparing to unpack .../01-desktop-file-utils_0.28-1_armhf.deb ... 947s Unpacking desktop-file-utils (0.28-1) ... 947s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 947s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 947s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 947s Selecting previously unselected package native-architecture. 947s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 947s Unpacking native-architecture (0.2.6) ... 947s Selecting previously unselected package libgirepository-2.0-0:armhf. 947s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_armhf.deb ... 947s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 947s Selecting previously unselected package girepository-tools:armhf. 947s Preparing to unpack .../05-girepository-tools_2.84.1-1_armhf.deb ... 947s Unpacking girepository-tools:armhf (2.84.1-1) ... 947s Selecting previously unselected package gnome-desktop-testing. 947s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_armhf.deb ... 947s Unpacking gnome-desktop-testing (2021.1-4) ... 947s Selecting previously unselected package libfontenc1:armhf. 947s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_armhf.deb ... 947s Unpacking libfontenc1:armhf (1:1.1.8-1build1) ... 947s Selecting previously unselected package libfreetype6:armhf. 947s Preparing to unpack .../08-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 947s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 947s Selecting previously unselected package libwayland-server0:armhf. 947s Preparing to unpack .../09-libwayland-server0_1.23.1-3_armhf.deb ... 947s Unpacking libwayland-server0:armhf (1.23.1-3) ... 947s Selecting previously unselected package libllvm19:armhf. 947s Preparing to unpack .../10-libllvm19_1%3a19.1.7-3ubuntu1_armhf.deb ... 947s Unpacking libllvm19:armhf (1:19.1.7-3ubuntu1) ... 948s Selecting previously unselected package libx11-xcb1:armhf. 948s Preparing to unpack .../11-libx11-xcb1_2%3a1.8.10-2_armhf.deb ... 948s Unpacking libx11-xcb1:armhf (2:1.8.10-2) ... 948s Selecting previously unselected package libxcb-dri3-0:armhf. 948s Preparing to unpack .../12-libxcb-dri3-0_1.17.0-2_armhf.deb ... 948s Unpacking libxcb-dri3-0:armhf (1.17.0-2) ... 948s Selecting previously unselected package libxcb-present0:armhf. 948s Preparing to unpack .../13-libxcb-present0_1.17.0-2_armhf.deb ... 948s Unpacking libxcb-present0:armhf (1.17.0-2) ... 948s Selecting previously unselected package libxcb-randr0:armhf. 948s Preparing to unpack .../14-libxcb-randr0_1.17.0-2_armhf.deb ... 948s Unpacking libxcb-randr0:armhf (1.17.0-2) ... 948s Selecting previously unselected package libxcb-sync1:armhf. 948s Preparing to unpack .../15-libxcb-sync1_1.17.0-2_armhf.deb ... 948s Unpacking libxcb-sync1:armhf (1.17.0-2) ... 948s Selecting previously unselected package libxcb-xfixes0:armhf. 948s Preparing to unpack .../16-libxcb-xfixes0_1.17.0-2_armhf.deb ... 948s Unpacking libxcb-xfixes0:armhf (1.17.0-2) ... 948s Selecting previously unselected package libxshmfence1:armhf. 949s Preparing to unpack .../17-libxshmfence1_1.3.3-1_armhf.deb ... 949s Unpacking libxshmfence1:armhf (1.3.3-1) ... 949s Selecting previously unselected package mesa-libgallium:armhf. 949s Preparing to unpack .../18-mesa-libgallium_25.0.3-1ubuntu2_armhf.deb ... 949s Unpacking mesa-libgallium:armhf (25.0.3-1ubuntu2) ... 949s Selecting previously unselected package libgbm1:armhf. 949s Preparing to unpack .../19-libgbm1_25.0.3-1ubuntu2_armhf.deb ... 949s Unpacking libgbm1:armhf (25.0.3-1ubuntu2) ... 949s Selecting previously unselected package libgio-2.0-dev-bin. 949s Preparing to unpack .../20-libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 949s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 949s Selecting previously unselected package libvulkan1:armhf. 949s Preparing to unpack .../21-libvulkan1_1.4.304.0-1_armhf.deb ... 949s Unpacking libvulkan1:armhf (1.4.304.0-1) ... 949s Selecting previously unselected package libgl1-mesa-dri:armhf. 949s Preparing to unpack .../22-libgl1-mesa-dri_25.0.3-1ubuntu2_armhf.deb ... 949s Unpacking libgl1-mesa-dri:armhf (25.0.3-1ubuntu2) ... 949s Selecting previously unselected package libglib2.0-bin. 949s Preparing to unpack .../23-libglib2.0-bin_2.84.1-1_armhf.deb ... 949s Unpacking libglib2.0-bin (2.84.1-1) ... 949s Selecting previously unselected package libglib2.0-dev-bin. 949s Preparing to unpack .../24-libglib2.0-dev-bin_2.84.1-1_armhf.deb ... 949s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 949s Selecting previously unselected package python3-dbusmock. 949s Preparing to unpack .../25-python3-dbusmock_0.34.3-1_all.deb ... 949s Unpacking python3-dbusmock (0.34.3-1) ... 949s Selecting previously unselected package tzdata-legacy. 949s Preparing to unpack .../26-tzdata-legacy_2025b-1ubuntu1_all.deb ... 949s Unpacking tzdata-legacy (2025b-1ubuntu1) ... 949s Selecting previously unselected package libglib2.0-tests. 949s Preparing to unpack .../27-libglib2.0-tests_2.84.1-1_armhf.deb ... 949s Unpacking libglib2.0-tests (2.84.1-1) ... 950s Selecting previously unselected package libxcb-glx0:armhf. 950s Preparing to unpack .../28-libxcb-glx0_1.17.0-2_armhf.deb ... 950s Unpacking libxcb-glx0:armhf (1.17.0-2) ... 950s Selecting previously unselected package libxcb-shm0:armhf. 950s Preparing to unpack .../29-libxcb-shm0_1.17.0-2_armhf.deb ... 950s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 950s Selecting previously unselected package libxxf86vm1:armhf. 950s Preparing to unpack .../30-libxxf86vm1_1%3a1.1.4-1build4_armhf.deb ... 950s Unpacking libxxf86vm1:armhf (1:1.1.4-1build4) ... 950s Selecting previously unselected package libglx-mesa0:armhf. 950s Preparing to unpack .../31-libglx-mesa0_25.0.3-1ubuntu2_armhf.deb ... 950s Unpacking libglx-mesa0:armhf (25.0.3-1ubuntu2) ... 950s Selecting previously unselected package x11-common. 950s Preparing to unpack .../32-x11-common_1%3a7.7+23ubuntu4_all.deb ... 950s Unpacking x11-common (1:7.7+23ubuntu4) ... 950s Selecting previously unselected package libice6:armhf. 950s Preparing to unpack .../33-libice6_2%3a1.1.1-1_armhf.deb ... 950s Unpacking libice6:armhf (2:1.1.1-1) ... 950s Selecting previously unselected package libpixman-1-0:armhf. 950s Preparing to unpack .../34-libpixman-1-0_0.44.0-3_armhf.deb ... 950s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 950s Selecting previously unselected package libsm6:armhf. 950s Preparing to unpack .../35-libsm6_2%3a1.2.4-1_armhf.deb ... 950s Unpacking libsm6:armhf (2:1.2.4-1) ... 950s Selecting previously unselected package libxt6t64:armhf. 950s Preparing to unpack .../36-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 950s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 950s Selecting previously unselected package libxmu6:armhf. 950s Preparing to unpack .../37-libxmu6_2%3a1.1.3-3build2_armhf.deb ... 950s Unpacking libxmu6:armhf (2:1.1.3-3build2) ... 950s Selecting previously unselected package libxpm4:armhf. 950s Preparing to unpack .../38-libxpm4_1%3a3.5.17-1build2_armhf.deb ... 950s Unpacking libxpm4:armhf (1:3.5.17-1build2) ... 950s Selecting previously unselected package libxaw7:armhf. 950s Preparing to unpack .../39-libxaw7_2%3a1.0.16-1_armhf.deb ... 950s Unpacking libxaw7:armhf (2:1.0.16-1) ... 950s Selecting previously unselected package libxfont2:armhf. 950s Preparing to unpack .../40-libxfont2_1%3a2.0.6-1build1_armhf.deb ... 950s Unpacking libxfont2:armhf (1:2.0.6-1build1) ... 950s Selecting previously unselected package libxkbfile1:armhf. 950s Preparing to unpack .../41-libxkbfile1_1%3a1.1.0-1build4_armhf.deb ... 950s Unpacking libxkbfile1:armhf (1:1.1.0-1build4) ... 950s Selecting previously unselected package libxrender1:armhf. 950s Preparing to unpack .../42-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 950s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 950s Selecting previously unselected package libxrandr2:armhf. 950s Preparing to unpack .../43-libxrandr2_2%3a1.5.4-1_armhf.deb ... 950s Unpacking libxrandr2:armhf (2:1.5.4-1) ... 950s Selecting previously unselected package x11-xkb-utils. 950s Preparing to unpack .../44-x11-xkb-utils_7.7+9_armhf.deb ... 950s Unpacking x11-xkb-utils (7.7+9) ... 950s Selecting previously unselected package xserver-common. 950s Preparing to unpack .../45-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 950s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 950s Selecting previously unselected package libglvnd0:armhf. 950s Preparing to unpack .../46-libglvnd0_1.7.0-1build1_armhf.deb ... 950s Unpacking libglvnd0:armhf (1.7.0-1build1) ... 950s Selecting previously unselected package libglx0:armhf. 950s Preparing to unpack .../47-libglx0_1.7.0-1build1_armhf.deb ... 950s Unpacking libglx0:armhf (1.7.0-1build1) ... 950s Selecting previously unselected package libgl1:armhf. 950s Preparing to unpack .../48-libgl1_1.7.0-1build1_armhf.deb ... 950s Unpacking libgl1:armhf (1.7.0-1build1) ... 951s Selecting previously unselected package xvfb. 951s Preparing to unpack .../49-xvfb_2%3a21.1.16-1ubuntu1_armhf.deb ... 951s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 951s Setting up gnome-desktop-testing (2021.1-4) ... 951s Setting up libxcb-dri3-0:armhf (1.17.0-2) ... 951s Setting up libpixman-1-0:armhf (0.44.0-3) ... 951s Setting up libllvm19:armhf (1:19.1.7-3ubuntu1) ... 951s Setting up libwayland-server0:armhf (1.23.1-3) ... 951s Setting up libx11-xcb1:armhf (2:1.8.10-2) ... 951s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 951s Setting up native-architecture (0.2.6) ... 951s Setting up libxcb-xfixes0:armhf (1.17.0-2) ... 951s Setting up desktop-file-utils (0.28-1) ... 951s Setting up libxpm4:armhf (1:3.5.17-1build2) ... 951s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 951s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 951s Setting up libglvnd0:armhf (1.7.0-1build1) ... 951s Setting up libxcb-glx0:armhf (1.17.0-2) ... 951s Setting up x11-common (1:7.7+23ubuntu4) ... 951s Setting up libglib2.0-bin (2.84.1-1) ... 951s Setting up libxcb-shm0:armhf (1.17.0-2) ... 951s Setting up python3-dbusmock (0.34.3-1) ... 952s Setting up tzdata-legacy (2025b-1ubuntu1) ... 952s Setting up libxxf86vm1:armhf (1:1.1.4-1build4) ... 952s Setting up libxcb-present0:armhf (1.17.0-2) ... 952s Setting up libfontenc1:armhf (1:1.1.8-1build1) ... 952s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 952s Setting up libxcb-sync1:armhf (1.17.0-2) ... 952s Setting up libxrandr2:armhf (2:1.5.4-1) ... 952s Setting up libvulkan1:armhf (1.4.304.0-1) ... 952s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 952s Setting up libxshmfence1:armhf (1.3.3-1) ... 952s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 952s Setting up libxcb-randr0:armhf (1.17.0-2) ... 952s Setting up libxkbfile1:armhf (1:1.1.0-1build4) ... 952s Setting up libxfont2:armhf (1:2.0.6-1build1) ... 952s Setting up libice6:armhf (2:1.1.1-1) ... 952s Setting up mesa-libgallium:armhf (25.0.3-1ubuntu2) ... 952s Setting up girepository-tools:armhf (2.84.1-1) ... 952s Setting up libgbm1:armhf (25.0.3-1ubuntu2) ... 952s Setting up libgl1-mesa-dri:armhf (25.0.3-1ubuntu2) ... 952s Setting up libsm6:armhf (2:1.2.4-1) ... 952s Setting up libglib2.0-dev-bin (2.84.1-1) ... 952s Setting up libglx-mesa0:armhf (25.0.3-1ubuntu2) ... 952s Setting up libglx0:armhf (1.7.0-1build1) ... 952s Setting up libgl1:armhf (1.7.0-1build1) ... 952s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 952s Setting up libglib2.0-tests (2.84.1-1) ... 952s Setting up libxmu6:armhf (2:1.1.3-3build2) ... 952s Setting up libxaw7:armhf (2:1.0.16-1) ... 952s Setting up x11-xkb-utils (7.7+9) ... 952s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 952s Setting up xvfb (2:21.1.16-1ubuntu1) ... 952s Processing triggers for man-db (2.13.0-1) ... 952s Processing triggers for libc-bin (2.41-6ubuntu1) ... 968s autopkgtest [00:54:51]: test installed-tests: [----------------------- 970s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),102(lxd) 970s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 970s group entry: ubuntu:x:1000: 970s Environment: 970s ADTTMP=/tmp/autopkgtest.QUXAzf/autopkgtest_tmp 970s ADT_ARTIFACTS=/tmp/autopkgtest.QUXAzf/installed-tests-artifacts 970s ADT_TEST_TRIGGERS=python3.13/3.13.3-2 970s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.QUXAzf/installed-tests-artifacts 970s AUTOPKGTEST_TESTBED_ARCH=armhf 970s AUTOPKGTEST_TEST_ARCH=armhf 970s AUTOPKGTEST_TMP=/tmp/autopkgtest.QUXAzf/autopkgtest_tmp 970s DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 970s DEBIAN_FRONTEND=noninteractive 970s DEB_BUILD_OPTIONS=parallel=8 970s GIO_USE_VFS=local 970s GIO_USE_VOLUME_MONITOR=unix 970s HOME=/home/ubuntu 970s LANG=C.UTF-8 970s LOGNAME=ubuntu 970s MAIL=/var/mail/ubuntu 970s OLDPWD=/root 970s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 970s PWD=/tmp/autopkgtest.QUXAzf/build.0Vc/src 970s SHELL=/bin/bash 970s SHLVL=1 970s USER=ubuntu 970s XDG_RUNTIME_DIR=/tmp/autopkgtest.QUXAzf/autopkgtest_tmp 970s XDG_SESSION_CLASS=background 970s XDG_SESSION_ID=c1 970s XDG_SESSION_TYPE=unspecified 970s http_proxy=http://squid.internal:3128 970s https_proxy=http://squid.internal:3128 970s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com 970s run-with-locales: de_DE=ISO-8859-1... 970s Character set: ISO-8859-1 970s Source file: de_DE 970s Output: /tmp/tmp.uP2HKt9q2G/de_DE 971s run-with-locales: de_DE.utf8... 971s Character set: UTF-8 971s Source file: de_DE 971s Output: /tmp/tmp.uP2HKt9q2G/de_DE.utf8 973s run-with-locales: de_DE@euro.utf8... 973s Character set: UTF-8 973s Source file: de_DE@euro 973s Output: /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8 975s run-with-locales: el_GR.utf8... 975s Character set: UTF-8 975s Source file: el_GR 975s Output: /tmp/tmp.uP2HKt9q2G/el_GR.utf8 977s run-with-locales: en_GB=ISO-8859-1... 977s Character set: ISO-8859-1 977s Source file: en_GB 977s Output: /tmp/tmp.uP2HKt9q2G/en_GB 977s run-with-locales: en_GB.utf8... 977s Character set: UTF-8 977s Source file: en_GB 977s Output: /tmp/tmp.uP2HKt9q2G/en_GB.utf8 979s run-with-locales: en_US=ISO-8859-1... 979s Character set: ISO-8859-1 979s Source file: en_US 979s Output: /tmp/tmp.uP2HKt9q2G/en_US 980s run-with-locales: en_US.utf8... 980s Character set: UTF-8 980s Source file: en_US 980s Output: /tmp/tmp.uP2HKt9q2G/en_US.utf8 982s run-with-locales: es_ES.utf8... 982s Character set: UTF-8 982s Source file: es_ES 982s Output: /tmp/tmp.uP2HKt9q2G/es_ES.utf8 983s run-with-locales: fa_IR=UTF-8... 983s Character set: UTF-8 983s Source file: fa_IR 983s Output: /tmp/tmp.uP2HKt9q2G/fa_IR 985s run-with-locales: fa_IR.utf8... 985s Character set: UTF-8 985s Source file: fa_IR 985s Output: /tmp/tmp.uP2HKt9q2G/fa_IR.utf8 988s run-with-locales: fr_FR.utf8... 988s Character set: UTF-8 988s Source file: fr_FR 988s Output: /tmp/tmp.uP2HKt9q2G/fr_FR.utf8 989s run-with-locales: hr_HR.utf8... 989s Character set: UTF-8 989s Source file: hr_HR 989s Output: /tmp/tmp.uP2HKt9q2G/hr_HR.utf8 991s run-with-locales: ja_JP.utf8... 991s Character set: UTF-8 991s Source file: ja_JP 991s Output: /tmp/tmp.uP2HKt9q2G/ja_JP.utf8 993s run-with-locales: ja_JP.EUC-JP... 993s Character set: EUC-JP 993s Source file: ja_JP 993s Output: /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp 993s run-with-locales: lt_LT.utf8... 993s Character set: UTF-8 993s Source file: lt_LT 993s Output: /tmp/tmp.uP2HKt9q2G/lt_LT.utf8 995s run-with-locales: pl_PL=ISO-8859-2... 995s Character set: ISO-8859-2 995s Source file: pl_PL 995s Output: /tmp/tmp.uP2HKt9q2G/pl_PL 995s run-with-locales: pl_PL.ISO-8859-2... 995s Character set: ISO-8859-2 995s Source file: pl_PL 995s Output: /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592 996s run-with-locales: pl_PL.utf8... 996s Character set: UTF-8 996s Source file: pl_PL 996s Output: /tmp/tmp.uP2HKt9q2G/pl_PL.utf8 998s run-with-locales: ru_RU=ISO-8859-5... 998s Character set: ISO-8859-5 998s Source file: ru_RU 998s Output: /tmp/tmp.uP2HKt9q2G/ru_RU 998s run-with-locales: ru_RU.utf8... 998s Character set: UTF-8 998s Source file: ru_RU 998s Output: /tmp/tmp.uP2HKt9q2G/ru_RU.utf8 1000s run-with-locales: sr_RS=UTF-8... 1000s Character set: UTF-8 1000s Source file: sr_RS 1000s Output: /tmp/tmp.uP2HKt9q2G/sr_RS 1002s run-with-locales: sr_RS@latin=UTF-8... 1002s Character set: UTF-8 1002s Source file: sr_RS@latin 1002s Output: /tmp/tmp.uP2HKt9q2G/sr_RS@latin 1004s run-with-locales: sv_SE=ISO-8859-1... 1004s Character set: ISO-8859-1 1004s Source file: sv_SE 1004s Output: /tmp/tmp.uP2HKt9q2G/sv_SE 1005s run-with-locales: sv_SE.utf8... 1005s Character set: UTF-8 1005s Source file: sv_SE 1005s Output: /tmp/tmp.uP2HKt9q2G/sv_SE.utf8 1006s run-with-locales: tr_TR=ISO-8859-9... 1006s Character set: ISO-8859-9 1006s Source file: tr_TR 1006s Output: /tmp/tmp.uP2HKt9q2G/tr_TR 1007s run-with-locales: tr_TR.utf8... 1007s Character set: UTF-8 1007s Source file: tr_TR 1007s Output: /tmp/tmp.uP2HKt9q2G/tr_TR.utf8 1009s run-with-locales: tt_RU=UTF-8... 1009s Character set: UTF-8 1009s Source file: tt_RU 1009s Output: /tmp/tmp.uP2HKt9q2G/tt_RU 1011s run-with-locales: tt_RU.utf8... 1011s Character set: UTF-8 1011s Source file: tt_RU 1011s Output: /tmp/tmp.uP2HKt9q2G/tt_RU.utf8 1012s run-with-locales: tt_RU@iqtelif=UTF-8... 1012s Character set: UTF-8 1012s Source file: tt_RU@iqtelif 1012s Output: /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif 1014s /tmp/tmp.uP2HKt9q2G 1014s /tmp/tmp.uP2HKt9q2G/de_DE 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/de_DE/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/de_DE.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/de_DE@euro.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/el_GR.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/en_GB 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/en_GB/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/en_GB.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/en_US 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/en_US/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/en_US.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/es_ES.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/fa_IR 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/fa_IR/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/fa_IR.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/fr_FR.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/hr_HR.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.utf8/LC_IDENTIFICAT1..323 1014s # Running test: glib/flags.test 1014s ok - glib/flags.test 1014s # Running test: glib/types.test 1014s ok - glib/types.test 1014s # Running test: glib/g-file.test 1014s ok - glib/g-file.test 1014s # Running test: glib/g-file-info-filesystem-readonly.test 1014s ok - glib/g-file-info-filesystem-readonly.test 1014s # Running test: glib/gobject-private.test 1014s ION 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/ja_JP.eucjp/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/lt_LT.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/pl_PL 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/pl_PL/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.iso88592/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/pl_PL.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/ru_RU 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/ru_RU/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/ru_RU.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/sr_RS 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/sr_RS/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/sr_RS@latin/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/sv_SE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/sv_SE/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/sv_SE.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/tr_TR 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/tr_TR/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/tr_TR.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/tt_RU 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/tt_RU/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/tt_RU.utf8/LC_IDENTIFICATION 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_CTYPE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_NUMERIC 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_TIME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_COLLATE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_MONETARY 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_PAPER 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_NAME 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_ADDRESS 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_TELEPHONE 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_MEASUREMENT 1014s /tmp/tmp.uP2HKt9q2G/tt_RU@iqtelif/LC_IDENTIFICATION 1014s TAP version 14 1014s # random seed: R02S006125ada495ad7973faf50a6eff6b2e 1014s 1..1 1014s # Start of gobject tests 1014s # Start of flags tests 1014s ok 1 /gobject/flags/validate 1014s # End of flags tests 1014s # End of gobject tests 1014s TAP version 14 1014s # random seed: R02Sc49081ff09ddff04f9e14ac67f02d2bf 1014s 1..1 1014s # Start of types tests 1014s ok 1 /types/basic_types 1014s # End of types tests 1014s TAP version 14 1014s # random seed: R02S7530d7a1cf77c1fd759df475793e297b 1014s 1..8 1014s # Start of g-file tests 1014s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1014s ok 1 /g-file/test_g_file_new_null 1014s ok 2 /g-file/test_g_file_new_for_path 1014s ok 3 /g-file/test_g_file_new_for_uri 1014s ok 4 /g-file/test_g_file_dup 1014s ok 5 /g-file/test_g_file_get_parse_name_utf8 1014s file:///tmp/test-tmp-glib_g-file.test-YYM352 1014s file:///tmp 1014s file:///tmp 1014s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1014s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1014s ok 6 /g-file/test_g_file_new_for_commandline_arg 1014s /dir1 /dir1/dir2/dir3/ 1014s /dir1/ /dir1/dir2/dir3/ 1014s /dir1 /dir1/dir2/dir3 1014s /dir1/ /dir1/dir2/dir3 1014s /tmp/ /something/ 1014s /dir1/dir2 /dir1/ 1014s //dir1/new //dir1/new/dir2/dir3 1014s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 1014s file:///dir1 file:///dir1/dir2/dir3/ 1014s file:///dir1/ file:///dir1/dir2/dir3/ 1014s file:///dir1 file:///dir1/dir2/dir3 1014s file:///dir1/ file:///dir1/dir2/dir3 1014s file:///tmp/ file:///something/ 1014s file:///dir1/dir2 file:///dir1/ 1014s file:////dir1/new file:////dir1/new/dir2/dir3 1014s 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 1014s ok 7 /g-file/test_g_file_has_prefix 1014s ok 8 /g-file/test_g_file_get_parent_child 1014s # End of g-file tests 1014s TAP version 14 1014s # random seed: R02S0a9b61c9c79a28b78c5294adb59312d3 1014s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1014s 1..2 1014s # Start of g-file-info-filesystem-readonly tests 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1014s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_XVB352/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1014s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1014s # End of g-file-info-filesystem-readonly tests 1014s TAP version 14 1014s # random seed: R02S1fbcec772b7c7a1aeab033fca3e8dce1 1014s 1..3 1014s # Start of private tests 1014s ok 1 /private/instance 1014s ok 2 /private/derived-instance 1014s ok 3 /private/mixed-derived-instance 1014s # End of private tests 1014s TAP version 14 1014s # random seed: R02S59a6bc8a76fa6012e62143aa28aee0eb 1014s 1..41 1014s # Start of utils tests 1014s ok 1 /utils/language-names 1014s ok 2 /utils/locale-variants 1014s ok 3 /utils/version 1014s ok 4 /utils/appname 1014s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1014s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1014s ok 5 /utils/prgname-thread-safety 1014s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1014s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1014s ok 6 /utils/tmpdir 1014s ok 7 /utils/basic_bits 1014s ok 8 /utils/bits 1014s ok 9 /utils/swap 1014s ok 10 /utils/find-program 1014s ok 11 /utils/find-program-for-path 1014s ok 12 /utils/debug 1014s ok 13 /utils/codeset 1014s ok 14 /utils/codeset2 1014s ok 15 /utils/console-charset 1014s ok 16 /utils/gettext 1014s ok 17 /utils/username 1014s ok 18 /utils/realname 1014s ok 19 /utils/hostname 1014s ok 20 /utils/xdgdirs 1014s ok 21 /utils/specialdir 1014s # NAME: Ubuntu 1014s ok 22 /utils/os-info 1014s ok 23 /utils/clear-pointer 1014s ok 24 /utils/clear-pointer-cast 1014s ok 25 /utils/take-pointer 1014s ok 26 /utils/clear-source 1014s ok 27 /utils/misc-mem 1014s # /utils/aligned-mem summary: Aligned memory allocator 1014s # Alignment must not be zero 1014s # Alignment must be a power of two 1014s # Alignment must be a multiple of sizeof(void*) 1014s ok 28 /utils/aligned-mem 1014s # /utils/free-sized summary: Check that g_free_sized() works 1014s ok 29 /utils/free-sized 1014s ok 30 /utils/nullify 1014s ok 31 /utils/atexit 1014s ok 32 /utils/check-setuid 1014s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1014s ok 33 /utils/int-limits 1014s ok 34 /utils/clear-list 1014s ok 35 /utils/clear-slist 1014s ok 36 /utils/steal-handle-id 1014s # Start of specialdir tests 1014s ok 37 /utils/specialdir/desktop 1014s # End of specialdir tests 1014s # Start of clear-pointer tests 1014s ok 38 /utils/clear-pointer/side-effects 1014s # End of clear-pointer tests 1014s # Start of aligned-mem tests 1014s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1014s ok 39 /utils/aligned-mem/alignment 1014s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1014s ok 40 /utils/aligned-mem/zeroed 1014s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1014s ok 41 /utils/aligned-mem/free-sized 1014s # Start of subprocess tests 1014s # End of subprocess tests 1014s # End of aligned-mem tests 1014s # End of utils tests 1014s TAP version 14 1014s # random seed: R02Sbbc7303a6184918e6a91ff97910cc511 1014s 1..1 1014s # Start of power-profile-monitor tests 1014s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1014s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 1014s ok 1 /power-profile-monitor/default 1014s # End of power-profile-monitor tests 1014s TAP version 14 1014s # random seed: R02S9be3e58f0c309a75885be1e13d04fe44 1014s 1..3 1014s # Start of error tests 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_IW4152/error/from-errno/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_IW4152/error/from-errno/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_IW4152/error/from-errno/.dirs/system-config1:/tmp/test_error_IW4152/error/from-errno/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_IW4152/error/from-errno/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_IW4152/error/from-errno/.dirs/system-data1:/tmp/test_error_IW4152/error/from-errno/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_IW4152/error/from-errno/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_IW4152/error/from-errno/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_IW4152/error/from-errno/.dirs/runtime 1014s ok 1 /error/from-errno 1014s ok - glib/gobject-private.test 1014s # Running test: glib/utils-c-89.test 1014s ok - glib/utils-c-89.test 1014s # Running test: glib/power-profile-monitor.test 1014s ok - glib/power-profile-monitor.test 1014s # Running test: glib/error.test 1014s ok - glib/error.test 1014s # Running test: glib/gdbus-proxy-threads.test 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_IW4152/error/from-file-error/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_IW4152/error/from-file-error/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_IW4152/error/from-file-error/.dirs/system-config1:/tmp/test_error_IW4152/error/from-file-error/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_IW4152/error/from-file-error/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_IW4152/error/from-file-error/.dirs/system-data1:/tmp/test_error_IW4152/error/from-file-error/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_IW4152/error/from-file-error/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_IW4152/error/from-file-error/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_IW4152/error/from-file-error/.dirs/runtime 1014s ok 2 /error/from-file-error 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_IW4152/error/from-win32-error/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_IW4152/error/from-win32-error/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_IW4152/error/from-win32-error/.dirs/system-config1:/tmp/test_error_IW4152/error/from-win32-error/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_IW4152/error/from-win32-error/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_IW4152/error/from-win32-error/.dirs/system-data1:/tmp/test_error_IW4152/error/from-win32-error/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_IW4152/error/from-win32-error/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_IW4152/error/from-win32-error/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_IW4152/error/from-win32-error/.dirs/runtime 1014s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1014s # End of error tests 1014s TAP version 14 1014s # random seed: R02S0b340d9b75f659f6817140641861470f 1014s 1..1 1014s # Start of gdbus tests 1014s # Start of proxy tests 1014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/home 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/cache 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/system-config2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/config 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/system-data2 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/data 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/state 1014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_RH0152/gdbus/proxy/vs-threads/.dirs/runtime 1015s ok - glib/gdbus-proxy-threads.test 1015s ok 1 /gdbus/proxy/vs-threads 1015s # slow test /gdbus/proxy/vs-threads executed in 1.01 secs 1015s # End of proxy tests 1015s # End of gdbus tests 1015s # Running test: glib/gdatetime.test 1015s cleaning up pid 1433 1015s TAP version 14 1015s # random seed: R02S04bbc91e65540873c69caf1afcd84a4b 1015s 1..68 1015s # Start of GDateTime tests 1015s # Bug Reference: http://bugzilla.gnome.org/702674 1015s ok 1 /GDateTime/invalid 1015s ok 2 /GDateTime/add_days 1015s ok 3 /GDateTime/add_full 1015s ok 4 /GDateTime/add_hours 1015s ok 5 /GDateTime/add_minutes 1015s ok 6 /GDateTime/add_months 1015s ok 7 /GDateTime/add_seconds 1015s ok 8 /GDateTime/add_weeks 1015s ok 9 /GDateTime/add_years 1015s ok 10 /GDateTime/compare 1015s ok 11 /GDateTime/diff 1015s ok 12 /GDateTime/equal 1015s ok 13 /GDateTime/get_day_of_week 1015s ok 14 /GDateTime/get_day_of_month 1015s ok 15 /GDateTime/get_day_of_year 1015s ok 16 /GDateTime/get_hour 1015s ok 17 /GDateTime/get_microsecond 1015s ok 18 /GDateTime/get_minute 1015s ok 19 /GDateTime/get_month 1015s ok 20 /GDateTime/get_second 1015s ok 21 /GDateTime/get_utc_offset 1015s ok 22 /GDateTime/get_year 1015s ok 23 /GDateTime/hash 1015s ok 24 /GDateTime/new_from_unix 1015s ok 25 /GDateTime/new_from_unix_utc 1015s ok 26 /GDateTime/new_from_timeval 1015s ok 27 /GDateTime/new_from_timeval_utc 1015s ok 28 /GDateTime/new_from_iso8601 1015s ok 29 /GDateTime/new_full 1015s ok 30 /GDateTime/now 1015s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1015s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1015s # %a -> expected: Sat 1015s # %a -> actual: Sat 1015s # %A -> expected: Saturday 1015s # %A -> actual: Saturday 1015s # %b -> expected: Oct 1015s # %b -> actual: Oct 1015s # %B -> expected: October 1015s # %B -> actual: October 1015s # %d -> expected: 24 1015s # %d -> actual: 24 1015s # %d -> expected: 01 1015s # %d -> actual: 01 1015s # %e -> expected: 24 1015s # %e -> actual: 24 1015s # %e -> expected:  1 1015s # %e -> actual:  1 1015s # %f -> expected: 001000 1015s # %f -> actual: 001000 1015s # %h -> expected: Oct 1015s # %h -> actual: Oct 1015s # %H -> expected: 00 1015s # %H -> actual: 00 1015s # %H -> expected: 15 1015s # %H -> actual: 15 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %I -> expected: 03 1015s # %I -> actual: 03 1015s # %j -> expected: 297 1015s # %j -> actual: 297 1015s # %k -> expected:  0 1015s # %k -> actual:  0 1015s # %k -> expected: 13 1015s # %k -> actual: 13 1015s # %l -> expected: 12 1015s # %l -> actual: 12 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %l -> expected:  1 1015s # %l -> actual:  1 1015s # %l -> expected: 10 1015s # %l -> actual: 10 1015s # %m -> expected: 10 1015s # %m -> actual: 10 1015s # %M -> expected: 00 1015s # %M -> actual: 00 1015s # %p -> expected: AM 1015s # %p -> actual: AM 1015s # %p -> expected: PM 1015s # %p -> actual: PM 1015s # %P -> expected: am 1015s # %P -> actual: am 1015s # %P -> expected: pm 1015s # %P -> actual: pm 1015s # %r -> expected: 12:00:00 AM 1015s # %r -> actual: 12:00:00 AM 1015s # %r -> expected: 01:13:13 PM 1015s # %r -> actual: 01:13:13 PM 1015s # %R -> expected: 00:00 1015s # %R -> actual: 00:00 1015s # %R -> expected: 13:13 1015s # %R -> actual: 13:13 1015s # %S -> expected: 00 1015s # %S -> actual: 00 1015s # %t -> expected: 1015s # %t -> actual: 1015s # %u -> expected: 6 1015s # %u -> actual: 6 1015s # %x -> expected: 10/24/09 1015s # %x -> actual: 10/24/09 1015s # %X -> expected: 00:00:00 1015s # %X -> actual: 00:00:00 1015s # %X -> expected: 13:14:15 1015s # %X -> actual: 13:14:15 1015s # %y -> expected: 09 1015s # %y -> actual: 09 1015s # %Y -> expected: 2009 1015s # %Y -> actual: 2009 1015s # %% -> expected: % 1015s # %% -> actual: % 1015s # % -> expected: 1015s # % -> actual: 1015s # %9 -> expected: (null) 1015s # %9 -> actual: (null) 1015s # %Z -> expected: UTC 1015s # %Z -> actual: UTC 1015s # %#Z %Z -> expected: utc UTC 1015s # %#Z %Z -> actual: utc UTC 1015s ok 32 /GDateTime/printf 1015s # %a -> expected: ÅÚ 1015s # %a -> actual: ÅÚ 1015s # %A -> expected: ÅÚÍËÆü 1015s # %A -> actual: ÅÚÍËÆü 1015s # %b -> expected: 10·î 1015s # %b -> actual: 10·î 1015s # %B -> expected: 10·î 1015s # %B -> actual: 10·î 1015s # %c -> expected: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1015s # %c -> actual: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1015s # %C -> expected: 20 1015s # %C -> actual: 20 1015s # %d -> expected: 24 1015s # %d -> actual: 24 1015s # %d -> expected: 01 1015s # %d -> actual: 01 1015s # %e -> expected: 24 1015s # %e -> actual: 24 1015s # %h -> expected: 10·î 1015s # %h -> actual: 10·î 1015s # %H -> expected: 00 1015s # %H -> actual: 00 1015s # %H -> expected: 15 1015s # %H -> actual: 15 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %I -> expected: 03 1015s # %I -> actual: 03 1015s # %j -> expected: 297 1015s # %j -> actual: 297 1015s # %k -> expected: ?0 1015s # %k -> actual: ?0 1015s # %k -> expected: 13 1015s # %k -> actual: 13 1015s # %l -> expected: 12 1015s # %l -> actual: 12 1015s # %I -> expected: 12 1015s # %I -> actual: 12 1015s # %l -> expected: ?1 1015s # %l -> actual: ?1 1015s # %l -> expected: 10 1015s # %l -> actual: 10 1015s # %m -> expected: 10 1015s # %m -> actual: 10 1015s # %M -> expected: 00 1015s # %M -> actual: 00 1015s # %p -> expected: ¸áÁ° 1015s # %p -> actual: ¸áÁ° 1015s # %p -> expected: ¸á¸å 1015s # %p -> actual: ¸á¸å 1015s # %P -> expected: ¸áÁ° 1015s # %P -> actual: ¸áÁ° 1015s # %P -> expected: ¸á¸å 1015s # %P -> actual: ¸á¸å 1015s # %r -> expected: ¸áÁ°12»þ00ʬ00Éà 1015s # %r -> actual: ¸áÁ°12»þ00ʬ00Éà 1015s # %r -> expected: ¸á¸å01»þ13ʬ13Éà 1015s # %r -> actual: ¸á¸å01»þ13ʬ13Éà 1015s # %R -> expected: 00:00 1015s # %R -> actual: 00:00 1015s # %R -> expected: 13:13 1015s # %R -> actual: 13:13 1015s # %S -> expected: 00 1015s # %S -> actual: 00 1015s # %t -> expected: 1015s # %t -> actual: 1015s # %u -> expected: 6 1015s # %u -> actual: 6 1015s # %x -> expected: 2009ǯ10·î24Æü 1015s # %x -> actual: 2009ǯ10·î24Æü 1015s # %X -> expected: 00»þ00ʬ00Éà 1015s # %X -> actual: 00»þ00ʬ00Éà 1015s # %X -> expected: 13»þ14ʬ15Éà 1015s # %X -> actual: 13»þ14ʬ15Éà 1015s # %y -> expected: 09 1015s # %y -> actual: 09 1015s # %Y -> expected: 2009 1015s # %Y -> actual: 2009 1015s # %% -> expected: % 1015s # %% -> actual: % 1015s # % -> expected: 1015s # % -> actual: 1015s # %9 -> expected: (null) 1015s # %9 -> actual: (null) 1015s # %Ec -> expected: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1015s # %Ec -> actual: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1015s # %EC -> expected: Ê¿À® 1015s # %EC -> actual: Ê¿À® 1015s # %Ex -> expected: Ê¿À®21ǯ10·î24Æü 1015s # %Ex -> actual: Ê¿À®21ǯ10·î24Æü 1015s # %EX -> expected: 00»þ00ʬ00Éà 1015s # %EX -> actual: 00»þ00ʬ00Éà 1015s # %Ey -> expected: 21 1015s # %Ey -> actual: 21 1015s # %EY -> expected: Ê¿À®21ǯ 1015s # %EY -> actual: Ê¿À®21ǯ 1015s ok 33 /GDateTime/non_utf8_printf 1015s # ???? -> expected: ???? 1015s # ???? -> actual: ???? 1015s # %H?%M -> expected: 23?15 1015s # %H?%M -> actual: 23?15 1015s # %H?%M -> expected: 23?15 1015s # %H?%M -> actual: 23?15 1015s ok 34 /GDateTime/format_unrepresentable 1015s ok 35 /GDateTime/format_iso8601 1016s ok 36 /GDateTime/strftime 1016s # %d -> expected: 01 1016s # %d -> actual: 01 1016s # %_d -> expected: 1 1016s # %_d -> actual: 1 1016s # %-d -> expected: 1 1016s # %-d -> actual: 1 1016s # %0d -> expected: 01 1016s # %0d -> actual: 01 1016s # %d -> expected: 21 1016s # %d -> actual: 21 1016s # %_d -> expected: 21 1016s # %_d -> actual: 21 1016s # %-d -> expected: 21 1016s # %-d -> actual: 21 1016s # %0d -> expected: 21 1016s # %0d -> actual: 21 1016s # %e -> expected:  1 1016s # %e -> actual:  1 1016s # %_e -> expected: 1 1016s # %_e -> actual: 1 1016s # %-e -> expected: 1 1016s # %-e -> actual: 1 1016s # %0e -> expected: 01 1016s # %0e -> actual: 01 1016s # %e -> expected: 21 1016s # %e -> actual: 21 1016s # %_e -> expected: 21 1016s # %_e -> actual: 21 1016s # %-e -> expected: 21 1016s # %-e -> actual: 21 1016s # %0e -> expected: 21 1016s # %0e -> actual: 21 1016s # %a -> expected: Thu 1016s # %a -> actual: Thu 1016s # %^a -> expected: THU 1016s # %^a -> actual: THU 1016s # %#a -> expected: THU 1016s # %#a -> actual: THU 1016s # %A -> expected: Thursday 1016s # %A -> actual: Thursday 1016s # %^A -> expected: THURSDAY 1016s # %^A -> actual: THURSDAY 1016s # %#A -> expected: THURSDAY 1016s # %#A -> actual: THURSDAY 1016s # %b -> expected: Jan 1016s # %b -> actual: Jan 1016s # %^b -> expected: JAN 1016s # %^b -> actual: JAN 1016s # %#b -> expected: JAN 1016s # %#b -> actual: JAN 1016s # %B -> expected: January 1016s # %B -> actual: January 1016s # %^B -> expected: JANUARY 1016s # %^B -> actual: JANUARY 1016s # %#B -> expected: JANUARY 1016s # %#B -> actual: JANUARY 1016s # %h -> expected: Jan 1016s # %h -> actual: Jan 1016s # %^h -> expected: JAN 1016s # %^h -> actual: JAN 1016s # %#h -> expected: JAN 1016s # %#h -> actual: JAN 1016s # %Z -> expected: UTC 1016s # %Z -> actual: UTC 1016s # %^Z -> expected: UTC 1016s # %^Z -> actual: UTC 1016s # %#Z -> expected: utc 1016s # %#Z -> actual: utc 1016s # %H -> expected: 01 1016s # %H -> actual: 01 1016s # %_H -> expected: 1 1016s # %_H -> actual: 1 1016s # %-H -> expected: 1 1016s # %-H -> actual: 1 1016s # %0H -> expected: 01 1016s # %0H -> actual: 01 1016s # %H -> expected: 21 1016s # %H -> actual: 21 1016s # %_H -> expected: 21 1016s # %_H -> actual: 21 1016s # %-H -> expected: 21 1016s # %-H -> actual: 21 1016s # %0H -> expected: 21 1016s # %0H -> actual: 21 1016s # %I -> expected: 01 1016s # %I -> actual: 01 1016s # %_I -> expected: 1 1016s # %_I -> actual: 1 1016s # %-I -> expected: 1 1016s # %-I -> actual: 1 1016s # %0I -> expected: 01 1016s # %0I -> actual: 01 1016s # %I -> expected: 11 1016s # %I -> actual: 11 1016s # %_I -> expected: 11 1016s # %_I -> actual: 11 1016s # %-I -> expected: 11 1016s # %-I -> actual: 11 1016s # %0I -> expected: 11 1016s # %0I -> actual: 11 1016s # %k -> expected:  1 1016s # %k -> actual:  1 1016s # %_k -> expected: 1 1016s # %_k -> actual: 1 1016s # %-k -> expected: 1 1016s # %-k -> actual: 1 1016s # %0k -> expected: 01 1016s # %0k -> actual: 01 1016s # %l -> expected:  1 1016s # %l -> actual:  1 1016s # %_l -> expected: 1 1016s # %_l -> actual: 1 1016s # %-l -> expected: 1 1016s # %-l -> actual: 1 1016s # %0l -> expected: 01 1016s # %0l -> actual: 01 1016s # %l -> expected: 11 1016s # %l -> actual: 11 1016s # %_l -> expected: 11 1016s # %_l -> actual: 11 1016s # %-l -> expected: 11 1016s # %-l -> actual: 11 1016s # %0l -> expected: 11 1016s # %0l -> actual: 11 1016s # %p -> expected: AM 1016s # %p -> actual: AM 1016s # %^p -> expected: AM 1016s # %^p -> actual: AM 1016s # %#p -> expected: am 1016s # %#p -> actual: am 1016s # %P -> expected: am 1016s # %P -> actual: am 1016s # %^P -> expected: AM 1016s # %^P -> actual: AM 1016s # %#P -> expected: am 1016s # %#P -> actual: am 1016s # %OH -> expected: Û²Û³ 1016s # %OH -> actual: Û²Û³ 1016s # %OI -> expected: Û±Û± 1016s # %OI -> actual: Û±Û± 1016s # %OM -> expected: Û°Û° 1016s # %OM -> actual: Û°Û° 1016s # %Om -> expected: Û°Û· 1016s # %Om -> actual: Û°Û· 1016s # %0Om -> expected: Û°Û· 1016s # %0Om -> actual: Û°Û· 1016s # %-Om -> expected: Û· 1016s # %-Om -> actual: Û· 1016s # %_Om -> expected: Û· 1016s # %_Om -> actual: Û· 1016s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1016s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1016s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1016s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1016s # %C -> expected: 20 1016s # %C -> actual: 20 1016s # %EC -> expected: 20 1016s # %EC -> actual: 20 1016s # %x -> expected: 02/01/09 1016s # %x -> actual: 02/01/09 1016s # %Ex -> expected: 02/01/09 1016s # %Ex -> actual: 02/01/09 1016s # %X -> expected: 01:02:03 1016s # %X -> actual: 01:02:03 1016s # %EX -> expected: 01:02:03 1016s # %EX -> actual: 01:02:03 1016s # %y -> expected: 09 1016s # %y -> actual: 09 1016s # %Ey -> expected: 09 1016s # %Ey -> actual: 09 1016s # %Y -> expected: 2009 1016s # %Y -> actual: 2009 1016s # %EY -> expected: 2009 1016s # %EY -> actual: 2009 1016s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1016s # Bug Reference: http://bugzilla.gnome.org/749206 1016s # %B -> expected: January 1016s # %B -> actual: January 1016s # %OB -> expected: February 1016s # %OB -> actual: February 1016s # %b -> expected: Mar 1016s # %b -> actual: Mar 1016s # %Ob -> expected: Apr 1016s # %Ob -> actual: Apr 1016s # %h -> expected: May 1016s # %h -> actual: May 1016s # %Oh -> expected: Jun 1016s # %Oh -> actual: Jun 1016s # %B -> expected: Juli 1016s # %B -> actual: Juli 1016s # %OB -> expected: August 1016s # %OB -> actual: August 1016s # %b -> expected: Sep 1016s # %b -> actual: Sep 1016s # %Ob -> expected: Okt 1016s # %Ob -> actual: Okt 1016s # %h -> expected: Nov 1016s # %h -> actual: Nov 1016s # %Oh -> expected: Dez 1016s # %Oh -> actual: Dez 1016s # %B -> expected: enero 1016s # %B -> actual: enero 1016s # %OB -> expected: febrero 1016s # %OB -> actual: febrero 1016s # %b -> expected: mar 1016s # %b -> actual: mar 1016s # %Ob -> expected: abr 1016s # %Ob -> actual: abr 1016s # %h -> expected: may 1016s # %h -> actual: may 1016s # %Oh -> expected: jun 1016s # %Oh -> actual: jun 1016s # %B -> expected: juillet 1016s # %B -> actual: juillet 1016s # %OB -> expected: août 1016s # %OB -> actual: août 1016s # %b -> expected: sept. 1016s # %b -> actual: sept. 1016s # %Ob -> expected: oct. 1016s # %Ob -> actual: oct. 1016s # %h -> expected: nov. 1016s # %h -> actual: nov. 1016s # %Oh -> expected: déc. 1016s # %Oh -> actual: déc. 1016s # %B -> expected: ΙανουαÏίου 1016s # %B -> actual: ΙανουαÏίου 1016s # %B -> expected: ΦεβÏουαÏίου 1016s # %B -> actual: ΦεβÏουαÏίου 1016s # %B -> expected: ΜαÏτίου 1016s # %B -> actual: ΜαÏτίου 1016s # %OB -> expected: ΑπÏίλιος 1016s # %OB -> actual: ΑπÏίλιος 1016s # %OB -> expected: Μάιος 1016s # %OB -> actual: Μάιος 1016s # %OB -> expected: ΙοÏνιος 1016s # %OB -> actual: ΙοÏνιος 1016s # %b -> expected: Ιουλ 1016s # %b -> actual: Ιουλ 1016s # %Ob -> expected: ΑÏγ 1016s # %Ob -> actual: ΑÏγ 1016s # %B -> expected: svibnja 1016s # %B -> actual: svibnja 1016s # %B -> expected: lipnja 1016s # %B -> actual: lipnja 1016s # %B -> expected: srpnja 1016s # %B -> actual: srpnja 1016s # %OB -> expected: Kolovoz 1016s # %OB -> actual: kolovoz 1016s # %OB -> expected: Rujan 1016s # %OB -> actual: rujan 1016s # %OB -> expected: Listopad 1016s # %OB -> actual: listopad 1016s # %b -> expected: Stu 1016s # %b -> actual: stu 1016s # %Ob -> expected: Pro 1016s # %Ob -> actual: pro 1016s # %B -> expected: sausio 1016s # %B -> actual: sausio 1016s # %B -> expected: vasario 1016s # %B -> actual: vasario 1016s # %B -> expected: kovo 1016s # %B -> actual: kovo 1016s # %OB -> expected: balandis 1016s # %OB -> actual: balandis 1016s # %OB -> expected: gegužė 1016s # %OB -> actual: gegužė 1016s # %OB -> expected: birželis 1016s # %OB -> actual: birželis 1016s # %b -> expected: liep. 1016s # %b -> actual: liep. 1016s # %Ob -> expected: rugp. 1016s # %Ob -> actual: rugp. 1016s # %B -> expected: maja 1016s # %B -> actual: maja 1016s # %B -> expected: czerwca 1016s # %B -> actual: czerwca 1016s # %B -> expected: lipca 1016s # %B -> actual: lipca 1016s # %OB -> expected: sierpieÅ„ 1016s # %OB -> actual: sierpieÅ„ 1016s # %OB -> expected: wrzesieÅ„ 1016s # %OB -> actual: wrzesieÅ„ 1016s # %OB -> expected: październik 1016s # %OB -> actual: październik 1016s # %b -> expected: lis 1016s # %b -> actual: lis 1016s # %Ob -> expected: gru 1016s # %Ob -> actual: gru 1016s # %B -> expected: ÑÐ½Ð²Ð°Ñ€Ñ 1016s # %B -> actual: ÑÐ½Ð²Ð°Ñ€Ñ 1016s # %B -> expected: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1016s # %B -> actual: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1016s # %B -> expected: марта 1016s # %B -> actual: марта 1016s # %OB -> expected: Ðпрель 1016s # %OB -> actual: Ðпрель 1016s # %OB -> expected: Май 1016s # %OB -> actual: Май 1016s # %OB -> expected: Июнь 1016s # %OB -> actual: Июнь 1016s # %b -> expected: июл 1016s # %b -> actual: июл 1016s # %Ob -> expected: авг 1016s # %Ob -> actual: авг 1016s # %b -> expected: Ð¼Ð°Ñ 1016s # %b -> actual: Ð¼Ð°Ñ 1016s # %Ob -> expected: май 1016s # %Ob -> actual: май 1016s ok 38 /GDateTime/month_names 1016s ok 39 /GDateTime/to_local 1016s ok 40 /GDateTime/to_unix 1016s ok 41 /GDateTime/to_timeval 1016s ok 42 /GDateTime/to_utc 1016s ok 43 /GDateTime/now_utc 1016s ok 44 /GDateTime/dst 1016s # Bug Reference: http://bugzilla.gnome.org/642935 1016s ok 45 /GDateTime/test_z 1017s ok 46 /GDateTime/test-all-dates 1017s # slow test /GDateTime/test-all-dates executed in 1.64 secs 1017s ok 47 /GDateTime/unix_usec 1017s # Start of new_from_unix tests 1017s # Bug Reference: http://bugzilla.gnome.org/782089 1017s ok 48 /GDateTime/new_from_unix/overflow 1017s # End of new_from_unix tests 1017s # Start of new_from_timeval tests 1017s # Bug Reference: http://bugzilla.gnome.org/782089 1017s # Maximum supported GTimeVal.tv_sec = 2147483647 1017s ok 49 /GDateTime/new_from_timeval/overflow 1017s # End of new_from_timeval tests 1017s # Start of new_from_iso8601 tests 1017s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1017s # Vector 0: 1990-11-01T10:21:17Z 1017s # Vector 1: 19901101T102117Z 1017s # Vector 2: 1970-01-01T00:00:17.12Z 1017s # Vector 3: 1970-01-01T00:00:17.1234Z 1017s # Vector 4: 1970-01-01T00:00:17.123456Z 1017s # Vector 5: 1980-02-22T12:36:00+02:00 1017s # Vector 6: 1990-12-31T15:59:60-08:00 1017s # Vector 7: 1017s # Vector 8: x 1017s # Vector 9: 123x 1017s # Vector 10: 2001-10+x 1017s # Vector 11: 1980-02-22T 1017s # Vector 12: 2001-10-08Tx 1017s # Vector 13: 2001-10-08T10:11x 1017s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1017s # Vector 15: 1980-02-22T10:36:00Zulu 1017s # Vector 16: 2T0+819855292164632335 1017s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1017s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1017s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1017s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1017s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1017s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1017s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1017s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1017s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1017s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1017s # Vector 27: 20180803T140805.446178377+0100 1017s # Vector 28: 21474836480803T140805.446178377+0100 1017s # Vector 29: 20181303T140805.446178377+0100 1017s # Vector 30: 20180003T140805.446178377+0100 1017s # Vector 31: 20180800T140805.446178377+0100 1017s # Vector 32: 20180832T140805.446178377+0100 1017s # Vector 33: 20180803T240805.446178377+0100 1017s # Vector 34: 20180803T146005.446178377+0100 1017s # Vector 35: 20180803T140863.446178377+0100 1017s # Vector 36: 20180803T140805.446178377+10000 1017s # Vector 37: -0005-01-01T00:00:00Z 1017s # Vector 38: 2018-08-06 1017s # Vector 39: 20180803T140805,446178377+0100 1017s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1017s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1017s # Vector 42: 1990-11-01T10:21:17 1017s # Vector 43: 1719W462 407777-07 1017s # Vector 44: 4011090 260528Z 1017s # Vector 45: 0000W011 228214-22 1017s ok 50 /GDateTime/new_from_iso8601/2 1017s # End of new_from_iso8601 tests 1017s # Start of format_mixed tests 1017s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1017s # %b -> expected: mar 1017s # %b -> actual: Mar 1017s # %B -> expected: march 1017s # %B -> actual: March 1017s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1017s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1017s # %b -> expected: mar 1017s # %b -> actual: Mar 1017s # %B -> expected: march 1017s # %B -> actual: March 1017s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1017s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1017s # %b -> expected: Mär 1017s # %b -> actual: Mär 1017s # %B -> expected: März 1017s # %B -> actual: März 1017s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1017s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1017s # %b -> expected: Mär 1017s # %b -> actual: Mär 1017s # %B -> expected: März 1017s # %B -> actual: März 1017s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1017s # End of format_mixed tests 1017s # Start of strftime tests 1017s # %r -> expected: (null) 1017s # %r -> actual: (null) 1017s ok 55 /GDateTime/strftime/error_handling 1017s # End of strftime tests 1017s # Start of eras tests 1017s # %Ec -> expected: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1017s # %Ec -> actual: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1017s # %EC -> expected: 令和 1017s # %EC -> actual: 令和 1017s # %Ex -> expected: 令和05å¹´06月01æ—¥ 1017s # %Ex -> actual: 令和05å¹´06月01æ—¥ 1017s # %EX -> expected: 00時00分00ç§’ 1017s # %EX -> actual: 00時00分00ç§’ 1017s # %Ey -> expected: 05 1017s # %Ey -> actual: 05 1017s # %EY -> expected: 令和05å¹´ 1017s # %EY -> actual: 令和05å¹´ 1017s ok - glib/gdatetime.test 1017s # Running test: glib/logging.test 1017s # %Ec -> expected: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1017s # %Ec -> actual: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1017s # %EC -> expected: å¹³æˆ 1017s # %EC -> actual: å¹³æˆ 1017s # %Ex -> expected: å¹³æˆ31å¹´04月30æ—¥ 1017s # %Ex -> actual: å¹³æˆ31å¹´04月30æ—¥ 1017s # %EX -> expected: 00時00分00ç§’ 1017s # %EX -> actual: 00時00分00ç§’ 1017s # %Ey -> expected: 31 1017s # %Ey -> actual: 31 1017s # %EY -> expected: å¹³æˆ31å¹´ 1017s # %EY -> actual: å¹³æˆ31å¹´ 1017s # %Ec -> expected: 昭和元年12月25æ—¥ 00時00分00ç§’ 1017s # %Ec -> actual: 昭和元年12月25æ—¥ 00時00分00ç§’ 1017s # %EC -> expected: 昭和 1017s # %EC -> actual: 昭和 1017s # %Ex -> expected: 昭和元年12月25æ—¥ 1017s # %Ex -> actual: 昭和元年12月25æ—¥ 1017s # %EX -> expected: 00時00分00ç§’ 1017s # %EX -> actual: 00時00分00ç§’ 1017s # %Ey -> expected: 01 1017s # %Ey -> actual: 01 1017s # %EY -> expected: 昭和元年 1017s # %EY -> actual: 昭和元年 1017s ok 56 /GDateTime/eras/japan 1017s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1017s # Vector 0: 1017s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1017s # 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å¹´ 1017s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Eyå¹´ 1017s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Eyå¹´ 1017s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 8: + 1017s # Vector 9: +: 1017s # Vector 10: +:: 1017s # Vector 11: +:200 1017s # Vector 12: +:2nonsense 1017s # Vector 13: +:2nonsense: 1017s # Vector 14: +:2: 1017s # Vector 15: +:2:: 1017s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 18: +:2:2020:+*:令和:%EC%Eyå¹´ 1017s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Eyå¹´ 1017s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 22: +:2:2020/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Eyå¹´ 1017s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Eyå¹´ 1017s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Eyå¹´ 1017s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Eyå¹´ 1017s # Vector 28: +:2:2020/01/01 1017s # Vector 29: +:2:2020/01/01: 1017s # Vector 30: +:2:2020/01/01:: 1017s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Eyå¹´ 1017s # Vector 32: +:2:2020/01/01:+* 1017s # Vector 33: +:2:2020/01/01:+*: 1017s # Vector 34: +:2:2020/01/01:+*:: 1017s # Vector 35: +:2:2020/01/01:+*:令和 1017s # Vector 36: +:2:2020/01/01:+*:令和: 1017s # Vector 37: +:2:2020/01/01:+*:令和:; 1017s ok 58 /GDateTime/eras/parsing 1017s # End of eras tests 1017s # End of GDateTime tests 1017s # Start of GTimeZone tests 1017s ok 59 /GTimeZone/find-interval 1017s ok 60 /GTimeZone/adjust-time 1017s ok 61 /GTimeZone/no-header 1017s ok 62 /GTimeZone/no-header-identifier 1017s ok 63 /GTimeZone/posix-parse 1017s # Bug Reference: http://bugzilla.gnome.org/697715 1017s ok 64 /GTimeZone/floating-point 1017s # System time zone identifier: Etc/UTC 1017s ok 65 /GTimeZone/identifier 1017s # Vector 0: -158400 1017s # Vector 1: -10000 1017s # Vector 2: -3600 1017s # Vector 3: -61 1017s # Vector 4: -60 1017s # Vector 5: -59 1017s # Vector 6: 0 1017s # Vector 7: 59 1017s # Vector 8: 60 1017s # Vector 9: 61 1017s # Vector 10: 3600 1017s # Vector 11: 10000 1017s # Vector 12: 158400 1017s ok 66 /GTimeZone/new-offset 1017s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1017s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1017s ok 67 /GTimeZone/parse-rfc8536 1017s # /GTimeZone/caching summary: GTimeZone instances are cached 1017s ok 68 /GTimeZone/caching 1017s # End of GTimeZone tests 1017s TAP version 14 1017s # random seed: R02S68092256656509e9ef23fa553f912003 1017s 1..17 1017s # Start of logging tests 1019s ok 1 /logging/default-handler 1019s # slow test /logging/default-handler executed in 1.40 secs 1019s ok 2 /logging/warnings 1019s ok 3 /logging/fatal-log-mask 1019s # bu-DEBUG: message 1019s # ba-DEBUG: message 1019s # ba-INFO: message 1019s ok 4 /logging/set-handler 1019s ok 5 /logging/print-handler 1019s ok 6 /logging/printerr-handler 1019s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1019s # The Log Message Handler 1019s # 1019s # The Good Fail Message Handler 1019s # 1019s ok 7 /logging/653052 1019s ok 8 /logging/gibberish 1019s # Start of default-handler tests 1019s # Start of subprocess tests 1019s # End of subprocess tests 1019s # End of default-handler tests 1019s # End of logging tests 1019s # Start of structured-logging tests 1019s ok 9 /structured-logging/no-state 1019s ok 10 /structured-logging/some-state 1019s ok 11 /structured-logging/robustness 1019s ok 12 /structured-logging/roundtrip1 1019s ok 13 /structured-logging/roundtrip2 1019s ok - glib/logging.test 1019s # Running test: glib/io-channel-basic.test 1019s ok 14 /structured-logging/roundtrip3 1019s ok 15 /structured-logging/variant1 1019s ok 16 /structured-logging/variant2 1019s ok 17 /structured-logging/set-writer-func-twice 1019s # End of structured-logging tests 1019s TAP version 14 1019s # random seed: R02S95773340b6b201de8f820ac5f3d54df0 1019s 1..1 1019s # Start of gio tests 1019s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1019s # random seed: R02S0fa31f7611d619d2278e87df57f59753 1019s # GLib-DEBUG: io-channel-basic: child writing 8+2402 bytes to 6 1019s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1019s # GLib-DEBUG: io-channel-basic: ...from 5: 2402 bytes 1019s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1019s # GLib-DEBUG: io-channel-basic: child writing 8+4467 bytes to 6 1019s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1019s # GLib-DEBUG: io-channel-basic: ...from 5: 4467 bytes 1019s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1019s # Executing: glib/io-channel-basic.test 1019s # GLib-DEBUG: io-channel-basic: child writing 8+3626 bytes to 6 1019s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1019s # GLib-DEBUG: io-channel-basic: ...from 5: 3626 bytes 1019s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1020s # GLib-DEBUG: io-channel-basic: child writing 8+3371 bytes to 6 1020s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1020s # GLib-DEBUG: io-channel-basic: ...from 5: 3371 bytes 1020s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1020s # GLib-DEBUG: io-channel-basic: child writing 8+1171 bytes to 6 1020s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1020s # GLib-DEBUG: io-channel-basic: ...from 5: 1171 bytes 1020s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1020s # GLib-DEBUG: io-channel-basic: child writing 8+3581 bytes to 6 1020s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1020s # GLib-DEBUG: io-channel-basic: ...from 5: 3581 bytes 1020s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1021s # GLib-DEBUG: io-channel-basic: child writing 8+2895 bytes to 6 1021s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1021s # GLib-DEBUG: io-channel-basic: ...from 5: 2895 bytes 1021s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1021s # GLib-DEBUG: io-channel-basic: child writing 8+2523 bytes to 6 1021s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1021s # GLib-DEBUG: io-channel-basic: ...from 5: 2523 bytes 1021s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1021s # GLib-DEBUG: io-channel-basic: child writing 8+912 bytes to 6 1021s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1021s # GLib-DEBUG: io-channel-basic: ...from 5: 912 bytes 1021s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1021s # GLib-DEBUG: io-channel-basic: child writing 8+239 bytes to 6 1021s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1021s # GLib-DEBUG: io-channel-basic: ...from 5: 239 bytes 1021s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1022s # GLib-DEBUG: io-channel-basic: child writing 8+2867 bytes to 6 1022s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1022s # GLib-DEBUG: io-channel-basic: ...from 5: 2867 bytes 1022s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1022s # GLib-DEBUG: io-channel-basic: child writing 8+210 bytes to 6 1022s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1022s # GLib-DEBUG: io-channel-basic: ...from 5: 210 bytes 1022s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1022s # GLib-DEBUG: io-channel-basic: child writing 8+4554 bytes to 6 1022s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1022s # GLib-DEBUG: io-channel-basic: ...from 5: 4554 bytes 1022s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1022s # GLib-DEBUG: io-channel-basic: child writing 8+2425 bytes to 6 1022s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1022s # GLib-DEBUG: io-channel-basic: ...from 5: 2425 bytes 1022s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1023s # GLib-DEBUG: io-channel-basic: child writing 8+3130 bytes to 6 1023s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1023s # GLib-DEBUG: io-channel-basic: ...from 5: 3130 bytes 1023s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1023s # GLib-DEBUG: io-channel-basic: child writing 8+4204 bytes to 6 1023s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1023s # GLib-DEBUG: io-channel-basic: ...from 5: 4204 bytes 1023s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1023s # GLib-DEBUG: io-channel-basic: child writing 8+2916 bytes to 6 1023s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1023s # GLib-DEBUG: io-channel-basic: ...from 5: 2916 bytes 1023s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1023s # GLib-DEBUG: io-channel-basic: child writing 8+4458 bytes to 6 1023s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1023s # GLib-DEBUG: io-channel-basic: ...from 5: 4458 bytes 1023s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1024s # GLib-DEBUG: io-channel-basic: child writing 8+1547 bytes to 6 1024s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1024s # GLib-DEBUG: io-channel-basic: ...from 5: 1547 bytes 1024s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1024s # GLib-DEBUG: io-channel-basic: child writing 8+1667 bytes to 6 1024s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1024s # GLib-DEBUG: io-channel-basic: ...from 5: 1667 bytes 1024s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1024s # GLib-DEBUG: io-channel-basic: child writing 8+4777 bytes to 6 1024s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1024s # GLib-DEBUG: io-channel-basic: ...from 5: 4777 bytes 1024s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1024s # Executing: glib/io-channel-basic.test 1024s # GLib-DEBUG: io-channel-basic: child writing 8+2999 bytes to 6 1024s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1024s # GLib-DEBUG: io-channel-basic: ...from 5: 2999 bytes 1024s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+2958 bytes to 6 1025s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1025s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1025s # GLib-DEBUG: io-channel-basic: ...from 5: 2958 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1025s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1025s # random seed: R02S2df90fa0a706812f089f7463c3ebfc09 1025s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1025s # random seed: R02Sf7243a3ff618b6dbdf2a1eece28f93b3 1025s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1025s # random seed: R02Sfca65663e3909609434e02ea5c28cf34 1025s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1025s # random seed: R02S36e8a30f160f214249e570f0692801a4 1025s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1025s # random seed: R02Sd5623f897c17710d93914ecdc8ba28ea 1025s # GLib-DEBUG: io-channel-basic: child writing 8+3197 bytes to 11 1025s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 10: 3197 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+2058 bytes to 13 1025s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 12: 2058 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+2425 bytes to 9 1025s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 8: 2425 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+3222 bytes to 17 1025s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 16: 3222 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+2223 bytes to 15 1025s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 14: 2223 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+1913 bytes to 11 1025s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 10: 1913 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+4446 bytes to 13 1025s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 12: 4446 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+3542 bytes to 17 1025s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 16: 3542 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+3980 bytes to 9 1025s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 8: 3980 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+4400 bytes to 15 1025s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 14: 4400 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+833 bytes to 11 1025s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 10: 833 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+3698 bytes to 13 1025s # GLib-DEBUG: io-channel-basic: child writing 8+1821 bytes to 17 1025s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 12: 3698 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1025s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 16: 1821 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1025s # GLib-DEBUG: io-channel-basic: child writing 8+626 bytes to 9 1025s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1025s # GLib-DEBUG: io-channel-basic: ...from 8: 626 bytes 1025s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+1715 bytes to 15 1026s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 14: 1715 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+1147 bytes to 13 1026s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 12: 1147 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+3327 bytes to 11 1026s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 10: 3327 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+4962 bytes to 9 1026s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 8: 4962 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+2546 bytes to 17 1026s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 16: 2546 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+1240 bytes to 15 1026s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 14: 1240 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+4203 bytes to 13 1026s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 12: 4203 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+2190 bytes to 17 1026s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 16: 2190 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+4300 bytes to 11 1026s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 10: 4300 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+4176 bytes to 9 1026s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 8: 4176 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+350 bytes to 15 1026s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 14: 350 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+4382 bytes to 13 1026s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 12: 4382 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+2368 bytes to 9 1026s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 8: 2368 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+2166 bytes to 17 1026s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 16: 2166 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+1976 bytes to 11 1026s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 10: 1976 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1026s # GLib-DEBUG: io-channel-basic: child writing 8+3882 bytes to 15 1026s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1026s # GLib-DEBUG: io-channel-basic: ...from 14: 3882 bytes 1026s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+1374 bytes to 13 1027s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 12: 1374 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+601 bytes to 17 1027s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 16: 601 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+4357 bytes to 9 1027s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 8: 4357 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+1267 bytes to 11 1027s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 10: 1267 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+2657 bytes to 15 1027s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 14: 2657 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+4912 bytes to 13 1027s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 12: 4912 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+3797 bytes to 17 1027s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 16: 3797 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+2937 bytes to 9 1027s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 8: 2937 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+615 bytes to 11 1027s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 10: 615 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+3675 bytes to 15 1027s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 14: 3675 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+2971 bytes to 13 1027s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 12: 2971 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+4431 bytes to 17 1027s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 16: 4431 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+3534 bytes to 9 1027s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 8: 3534 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+2944 bytes to 11 1027s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 10: 2944 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+3363 bytes to 15 1027s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 14: 3363 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+2808 bytes to 13 1027s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 12: 2808 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+3819 bytes to 17 1027s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 16: 3819 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+696 bytes to 11 1027s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 10: 696 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+4839 bytes to 9 1027s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 8: 4839 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1027s # GLib-DEBUG: io-channel-basic: child writing 8+1936 bytes to 15 1027s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1027s # GLib-DEBUG: io-channel-basic: ...from 14: 1936 bytes 1027s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+2568 bytes to 13 1028s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 12: 2568 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+1495 bytes to 17 1028s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 16: 1495 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+1787 bytes to 11 1028s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 10: 1787 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+2311 bytes to 9 1028s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 8: 2311 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+322 bytes to 15 1028s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 14: 322 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4316 bytes to 17 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4923 bytes to 13 1028s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 12: 4923 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1028s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 16: 4316 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+3810 bytes to 11 1028s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 10: 3810 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+2778 bytes to 9 1028s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 8: 2778 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+1170 bytes to 15 1028s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 14: 1170 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4972 bytes to 13 1028s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 12: 4972 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+2463 bytes to 17 1028s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 16: 2463 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+367 bytes to 11 1028s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 10: 367 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4144 bytes to 9 1028s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 8: 4144 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+3957 bytes to 15 1028s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 14: 3957 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+542 bytes to 13 1028s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 12: 542 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+2239 bytes to 17 1028s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 16: 2239 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4745 bytes to 11 1028s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 10: 4745 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+446 bytes to 9 1028s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 8: 446 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1028s # GLib-DEBUG: io-channel-basic: child writing 8+4325 bytes to 15 1028s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1028s # GLib-DEBUG: io-channel-basic: ...from 14: 4325 bytes 1028s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+1473 bytes to 17 1029s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 16: 1473 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+957 bytes to 13 1029s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 12: 957 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+4144 bytes to 11 1029s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 10: 4144 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2275 bytes to 9 1029s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 8: 2275 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+3611 bytes to 15 1029s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 14: 3611 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2632 bytes to 17 1029s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 16: 2632 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+4567 bytes to 13 1029s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 12: 4567 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+1052 bytes to 11 1029s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 10: 1052 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2589 bytes to 9 1029s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 8: 2589 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2878 bytes to 15 1029s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 14: 2878 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+882 bytes to 17 1029s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 16: 882 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+702 bytes to 13 1029s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 12: 702 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2271 bytes to 11 1029s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 10: 2271 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+92 bytes to 9 1029s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 8: 92 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+4371 bytes to 15 1029s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 14: 4371 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+575 bytes to 17 1029s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 16: 575 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2409 bytes to 13 1029s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 12: 2409 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+2013 bytes to 11 1029s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 10: 2013 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1029s # GLib-DEBUG: io-channel-basic: child writing 8+3170 bytes to 9 1029s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 8: 3170 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1029s # Executing: glib/io-channel-basic.test 1029s # GLib-DEBUG: io-channel-basic: child writing 8+3165 bytes to 15 1029s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1029s # GLib-DEBUG: io-channel-basic: ...from 14: 3165 bytes 1029s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+1569 bytes to 17 1030s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 16: 1569 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+2393 bytes to 13 1030s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 12: 2393 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+4966 bytes to 11 1030s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 10: 4966 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+4255 bytes to 9 1030s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 8: 4255 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+4512 bytes to 15 1030s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 14: 4512 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+857 bytes to 17 1030s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 16: 857 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+1973 bytes to 13 1030s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1030s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1030s # GLib-DEBUG: io-channel-basic: ...from 12: 1973 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+4552 bytes to 11 1030s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1030s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1030s # GLib-DEBUG: io-channel-basic: ...from 10: 4552 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+1744 bytes to 9 1030s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 8: 1744 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+1748 bytes to 15 1030s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 14: 1748 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+932 bytes to 17 1030s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 16: 932 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+2372 bytes to 9 1030s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 8: 2372 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+776 bytes to 15 1030s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 14: 776 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+876 bytes to 17 1030s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1030s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1030s # GLib-DEBUG: io-channel-basic: ...from 16: 876 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1030s # GLib-DEBUG: io-channel-basic: child writing 8+3414 bytes to 9 1030s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1030s # GLib-DEBUG: io-channel-basic: ...from 8: 3414 bytes 1030s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1031s # GLib-DEBUG: io-channel-basic: child writing 8+4767 bytes to 15 1031s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1031s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1031s # GLib-DEBUG: io-channel-basic: ...from 14: 4767 bytes 1031s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1031s # GLib-DEBUG: io-channel-basic: ...from 14: HUP 1031s # GLib-DEBUG: io-channel-basic: child writing 8+3572 bytes to 9 1031s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1031s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1031s # GLib-DEBUG: io-channel-basic: ...from 8: 3572 bytes 1031s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1031s ok 1 /gio/io-basics 1031s # slow test /gio/io-basics executed in 12.02 secs 1031s # End of gio tests 1031s ok - glib/io-channel-basic.test 1031s # Running test: glib/messages-low-memory.py.test 1031s TAP version 13 1031s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1031s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1031s # tmpdir: /tmp/tmpromm3i6p 1031s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1031s # Return code: -6 1031s # Output: 1031s # 1031s # Error: 1031s # GLib-Message: 00:55:54.266: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1031s # GLib-Message: 00:55:54.266: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1031s # ../../../glib/gprintf.c:350: failed to allocate memory 1031s 1..1 1031s ok - glib/messages-low-memory.py.test 1031s # Running test: glib/atomic.test 1031s TAP version 14 1031s # random seed: R02S9b427df5e57aa58d7c372ef67cee34b9 1031s 1..2 1031s # Start of atomic tests 1031s ok 1 /atomic/types 1031s ok - glib/atomic.test 1031s # Running test: glib/fdo-notification-backend.test 1031s ok 2 /atomic/threaded 1031s # End of atomic tests 1031s TAP version 14 1031s # random seed: R02Sd19d8a54953fd6d7604d3cff2dfb6fef 1031s 1..2 1031s # Start of fdo-notification-backend tests 1031s # Test constructing a GFdoNotificationBackend 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s ok 1 /fdo-notification-backend/construction 1031s # Start of dbus tests 1031s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1031s ok - glib/fdo-notification-backend.test 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s ok 2 /fdo-notification-backend/dbus/activate-action 1031s # End of dbus tests 1031s # End of fdo-notification-backend tests 1031s # Running test: glib/dynamictests.test 1031s TAP version 14 1031s # random seed: R02Se784f87e4dcd2f4c9bc3108198213f87 1031s 1..2 1031s # Start of GObject tests 1031s ok 1 /GObject/threaded-dynamic-ref-unref-init 1031s ok 2 /GObject/dynamic-interface-properties 1031s # End of GObject tests 1031s ok - glib/dynamictests.test 1031s # Running test: glib/g-icon.test 1031s TAP version 14 1031s # random seed: R02S27631590b1f02db89e6ee32b62453bcd 1031s 1..6 1031s # Start of icons tests 1031s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1031s ok 1 /icons/to-string 1031s ok 2 /icons/serialize 1031s ok 3 /icons/themed 1031s ok 4 /icons/emblemed 1031s ok - glib/g-icon.test 1031s ok 5 /icons/file 1031s ok 6 /icons/bytes 1031s # End of icons tests 1031s TAP version 14 1031s # random seed: R02S0c67cf0936ef97e5265ee5f58fe6cde3 1031s 1..20 1031s # Start of list tests 1031s ok 1 /list/sort 1031s ok 2 /list/sort-with-data 1031s ok 3 /list/insert-before-link 1031s ok 4 /list/insert-sorted 1031s ok 5 /list/insert-sorted-with-data 1031s ok 6 /list/reverse 1031s ok 7 /list/nth 1031s ok 8 /list/concat 1031s ok 9 /list/remove 1031s ok 10 /list/remove-all 1031s ok 11 /list/first-last 1031s ok 12 /list/insert 1031s ok 13 /list/free-full 1031s ok 14 /list/copy 1031s ok 15 /list/copy-deep 1031s ok 16 /list/delete-link 1031s ok 17 /list/prepend 1031s ok 18 /list/position 1031s # Running test: glib/list.test 1031s ok - glib/list.test 1031s # Running test: glib/strvbuilder.test 1031s ok - glib/strvbuilder.test 1031s # Running test: glib/bookmarkfile.test 1031s ok 19 /list/double-free 1031s # Start of sort tests 1031s ok 20 /list/sort/stable 1031s # End of sort tests 1031s # End of list tests 1031s TAP version 14 1031s # random seed: R02Sbe244abc38bac0253f2436322706d9ee 1031s 1..7 1031s # Start of strvbuilder tests 1031s ok 1 /strvbuilder/empty 1031s ok 2 /strvbuilder/add 1031s ok 3 /strvbuilder/addv 1031s ok 4 /strvbuilder/add_many 1031s ok 5 /strvbuilder/take 1031s ok 6 /strvbuilder/ref 1031s ok 7 /strvbuilder/unref_to_strv 1031s # End of strvbuilder tests 1031s TAP version 14 1031s # random seed: R02Sdf8e5c7f77ea22aadba3ed349ec508db 1031s 1..96 1031s # Start of bookmarks tests 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/load-from-data-dirs/.dirs/runtime 1031s ok 1 /bookmarks/load-from-data-dirs 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/to-file/.dirs/runtime 1031s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_9E2V52/bookmarkfile-test-QE3V52.xbel 1031s # Roundtrip from a valid bookmark file 1031s ok 2 /bookmarks/to-file 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/move-item/.dirs/runtime 1031s ok 3 /bookmarks/move-item 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/corner-cases/.dirs/runtime 1031s ok 4 /bookmarks/corner-cases 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/misc/.dirs/runtime 1031s ok 5 /bookmarks/misc 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/deprecated/.dirs/runtime 1031s ok 6 /bookmarks/deprecated 1031s # Start of parse tests 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-01.xbel/.dirs/runtime 1031s ok 7 /bookmarks/parse/fail-01.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-02.xbel/.dirs/runtime 1031s ok 8 /bookmarks/parse/fail-02.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-03.xbel/.dirs/runtime 1031s ok 9 /bookmarks/parse/fail-03.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-04.xbel/.dirs/runtime 1031s ok 10 /bookmarks/parse/fail-04.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-05.xbel/.dirs/runtime 1031s ok 11 /bookmarks/parse/fail-05.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-06.xbel/.dirs/runtime 1031s ok 12 /bookmarks/parse/fail-06.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-07.xbel/.dirs/runtime 1031s ok 13 /bookmarks/parse/fail-07.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-08.xbel/.dirs/runtime 1031s ok 14 /bookmarks/parse/fail-08.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-09.xbel/.dirs/runtime 1031s ok 15 /bookmarks/parse/fail-09.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-10.xbel/.dirs/runtime 1031s ok 16 /bookmarks/parse/fail-10.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/cache 1031s ok - glib/bookmarkfile.test 1031s # Running test: glib/gdbus-test-codegen-old.test 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-11.xbel/.dirs/runtime 1031s ok 17 /bookmarks/parse/fail-11.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-12.xbel/.dirs/runtime 1031s ok 18 /bookmarks/parse/fail-12.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-13.xbel/.dirs/runtime 1031s ok 19 /bookmarks/parse/fail-13.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-14.xbel/.dirs/runtime 1031s ok 20 /bookmarks/parse/fail-14.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-15.xbel/.dirs/runtime 1031s ok 21 /bookmarks/parse/fail-15.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-16.xbel/.dirs/runtime 1031s ok 22 /bookmarks/parse/fail-16.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-17.xbel/.dirs/runtime 1031s ok 23 /bookmarks/parse/fail-17.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-18.xbel/.dirs/runtime 1031s ok 24 /bookmarks/parse/fail-18.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-19.xbel/.dirs/runtime 1031s ok 25 /bookmarks/parse/fail-19.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-20.xbel/.dirs/runtime 1031s ok 26 /bookmarks/parse/fail-20.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-21.xbel/.dirs/runtime 1031s ok 27 /bookmarks/parse/fail-21.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-22.xbel/.dirs/runtime 1031s ok 28 /bookmarks/parse/fail-22.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-23.xbel/.dirs/runtime 1031s ok 29 /bookmarks/parse/fail-23.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-24.xbel/.dirs/runtime 1031s ok 30 /bookmarks/parse/fail-24.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-25.xbel/.dirs/runtime 1031s ok 31 /bookmarks/parse/fail-25.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-26.xbel/.dirs/runtime 1031s ok 32 /bookmarks/parse/fail-26.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-27.xbel/.dirs/runtime 1031s ok 33 /bookmarks/parse/fail-27.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-28.xbel/.dirs/runtime 1031s ok 34 /bookmarks/parse/fail-28.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-29.xbel/.dirs/runtime 1031s ok 35 /bookmarks/parse/fail-29.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-30.xbel/.dirs/runtime 1031s ok 36 /bookmarks/parse/fail-30.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-31.xbel/.dirs/runtime 1031s ok 37 /bookmarks/parse/fail-31.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-32.xbel/.dirs/runtime 1031s ok 38 /bookmarks/parse/fail-32.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-33.xbel/.dirs/runtime 1031s ok 39 /bookmarks/parse/fail-33.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-34.xbel/.dirs/runtime 1031s ok 40 /bookmarks/parse/fail-34.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-35.xbel/.dirs/runtime 1031s ok 41 /bookmarks/parse/fail-35.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-36.xbel/.dirs/runtime 1031s ok 42 /bookmarks/parse/fail-36.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-37.xbel/.dirs/runtime 1031s ok 43 /bookmarks/parse/fail-37.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-38.xbel/.dirs/runtime 1031s ok 44 /bookmarks/parse/fail-38.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-39.xbel/.dirs/runtime 1031s ok 45 /bookmarks/parse/fail-39.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-40.xbel/.dirs/runtime 1031s ok 46 /bookmarks/parse/fail-40.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-41.xbel/.dirs/runtime 1031s ok 47 /bookmarks/parse/fail-41.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/fail-42.xbel/.dirs/runtime 1031s ok 48 /bookmarks/parse/fail-42.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-01.xbel/.dirs/runtime 1031s ok 49 /bookmarks/parse/valid-01.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-02.xbel/.dirs/runtime 1031s ok 50 /bookmarks/parse/valid-02.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/parse/valid-03.xbel/.dirs/runtime 1031s ok 51 /bookmarks/parse/valid-03.xbel 1031s # End of parse tests 1031s # Start of copy tests 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-01.xbel/.dirs/runtime 1031s ok 52 /bookmarks/copy/fail-01.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-02.xbel/.dirs/runtime 1031s ok 53 /bookmarks/copy/fail-02.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-03.xbel/.dirs/runtime 1031s ok 54 /bookmarks/copy/fail-03.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-04.xbel/.dirs/runtime 1031s ok 55 /bookmarks/copy/fail-04.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-05.xbel/.dirs/runtime 1031s ok 56 /bookmarks/copy/fail-05.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-06.xbel/.dirs/runtime 1031s ok 57 /bookmarks/copy/fail-06.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-07.xbel/.dirs/runtime 1031s ok 58 /bookmarks/copy/fail-07.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-08.xbel/.dirs/runtime 1031s ok 59 /bookmarks/copy/fail-08.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-09.xbel/.dirs/runtime 1031s ok 60 /bookmarks/copy/fail-09.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-10.xbel/.dirs/runtime 1031s ok 61 /bookmarks/copy/fail-10.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-11.xbel/.dirs/runtime 1031s ok 62 /bookmarks/copy/fail-11.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-12.xbel/.dirs/runtime 1031s ok 63 /bookmarks/copy/fail-12.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-13.xbel/.dirs/runtime 1031s ok 64 /bookmarks/copy/fail-13.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-14.xbel/.dirs/runtime 1031s ok 65 /bookmarks/copy/fail-14.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-15.xbel/.dirs/runtime 1031s ok 66 /bookmarks/copy/fail-15.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-16.xbel/.dirs/runtime 1031s ok 67 /bookmarks/copy/fail-16.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-17.xbel/.dirs/runtime 1031s ok 68 /bookmarks/copy/fail-17.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfileok - glib/gdbus-test-codegen-old.test 1031s # Running test: glib/gsubprocess.test 1031s _9E2V52/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-18.xbel/.dirs/runtime 1031s ok 69 /bookmarks/copy/fail-18.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-19.xbel/.dirs/runtime 1031s ok 70 /bookmarks/copy/fail-19.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-20.xbel/.dirs/runtime 1031s ok 71 /bookmarks/copy/fail-20.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-21.xbel/.dirs/runtime 1031s ok 72 /bookmarks/copy/fail-21.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-22.xbel/.dirs/runtime 1031s ok 73 /bookmarks/copy/fail-22.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-23.xbel/.dirs/runtime 1031s ok 74 /bookmarks/copy/fail-23.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-24.xbel/.dirs/runtime 1031s ok 75 /bookmarks/copy/fail-24.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-25.xbel/.dirs/runtime 1031s ok 76 /bookmarks/copy/fail-25.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-26.xbel/.dirs/runtime 1031s ok 77 /bookmarks/copy/fail-26.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-27.xbel/.dirs/runtime 1031s ok 78 /bookmarks/copy/fail-27.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-28.xbel/.dirs/runtime 1031s ok 79 /bookmarks/copy/fail-28.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-29.xbel/.dirs/runtime 1031s ok 80 /bookmarks/copy/fail-29.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-30.xbel/.dirs/runtime 1031s ok 81 /bookmarks/copy/fail-30.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-31.xbel/.dirs/runtime 1031s ok 82 /bookmarks/copy/fail-31.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-32.xbel/.dirs/runtime 1031s ok 83 /bookmarks/copy/fail-32.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-33.xbel/.dirs/runtime 1031s ok 84 /bookmarks/copy/fail-33.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-34.xbel/.dirs/runtime 1031s ok 85 /bookmarks/copy/fail-34.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-35.xbel/.dirs/runtime 1031s ok 86 /bookmarks/copy/fail-35.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-36.xbel/.dirs/runtime 1031s ok 87 /bookmarks/copy/fail-36.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-37.xbel/.dirs/runtime 1031s ok 88 /bookmarks/copy/fail-37.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-38.xbel/.dirs/runtime 1031s ok 89 /bookmarks/copy/fail-38.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-39.xbel/.dirs/runtime 1031s ok 90 /bookmarks/copy/fail-39.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-40.xbel/.dirs/runtime 1031s ok 91 /bookmarks/copy/fail-40.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-41.xbel/.dirs/runtime 1031s ok 92 /bookmarks/copy/fail-41.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/fail-42.xbel/.dirs/runtime 1031s ok 93 /bookmarks/copy/fail-42.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-01.xbel/.dirs/runtime 1031s ok 94 /bookmarks/copy/valid-01.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-02.xbel/.dirs/runtime 1031s ok 95 /bookmarks/copy/valid-02.xbel 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_9E2V52/bookmarks/copy/valid-03.xbel/.dirs/runtime 1031s ok 96 /bookmarks/copy/valid-03.xbel 1031s # End of copy tests 1031s # End of bookmarks tests 1031s TAP version 14 1031s # random seed: R02S54027fe5826f1fccbea1f80b845ba78d 1031s 1..8 1031s # Start of gdbus tests 1031s # Start of codegen tests 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/annotations/.dirs/runtime 1031s ok 1 /gdbus/codegen/annotations 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/interface_stability/.dirs/runtime 1031s ok 2 /gdbus/codegen/interface_stability 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/object-manager/.dirs/runtime 1031s ok 3 /gdbus/codegen/object-manager 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/property-naming/.dirs/runtime 1031s ok 4 /gdbus/codegen/property-naming 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/autocleanups/.dirs/runtime 1031s ok 5 /gdbus/codegen/autocleanups 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/deprecations/.dirs/runtime 1031s ok 6 /gdbus/codegen/deprecations 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/standalone-interface-info/.dirs/runtime 1031s ok 7 /gdbus/codegen/standalone-interface-info 1031s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/home 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/cache 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/system-config2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/config 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/system-data2 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/data 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/state 1031s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_V00T52/gdbus/codegen/unix-fd-list/.dirs/runtime 1031s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1031s ok 8 /gdbus/codegen/unix-fd-list 1031s # End of codegen tests 1031s # End of gdbus tests 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1031s TAP version 14 1031s # random seed: R02S82938c5505e6a9d4cb86acac387cc706 1031s 1..84 1031s # Start of gsubprocess tests 1031s ok 1 /gsubprocess/noop 1031s ok 2 /gsubprocess/noop-all-to-null 1031s ok 3 /gsubprocess/noop-no-wait 1031s ok 4 /gsubprocess/noop-stdin-inherit 1031s ok 5 /gsubprocess/search-path 1031s ok 6 /gsubprocess/search-path-from-envp 1034s # Executing: glib/gsubprocess.test 1034s ok 7 /gsubprocess/signal 1034s # slow test /gsubprocess/signal executed in 3.35 secs 1034s ok 8 /gsubprocess/exit1 1034s ok 9 /gsubprocess/echo1 1034s ok 10 /gsubprocess/echo-merged 1034s ok 11 /gsubprocess/cat-utf8 1035s ok 12 /gsubprocess/cat-eof 1035s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1038s ok 13 /gsubprocess/multi1 1038s # slow test /gsubprocess/multi1 executed in 3.01 secs 1038s ok 14 /gsubprocess/communicate 1039s # Executing: glib/gsubprocess.test 1041s ok 15 /gsubprocess/terminate 1041s # slow test /gsubprocess/terminate executed in 2.97 secs 1041s ok 16 /gsubprocess/fail-initialization 1041s ok 17 /gsubprocess/env 1041s ok 18 /gsubprocess/cwd 1041s ok 19 /gsubprocess/launcher-close 1041s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1041s ok 20 /gsubprocess/stdout-file 1041s ok 21 /gsubprocess/stdout-fd 1041s ok 22 /gsubprocess/child-setup 1041s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1041s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1041s ok 23 /gsubprocess/launcher-environment 1041s # Start of exit1 tests 1041s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1041s ok 24 /gsubprocess/exit1/cancel 1041s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1041s ok 25 /gsubprocess/exit1/cancel_in_cb 1041s # End of exit1 tests 1041s # Start of communicate tests 1041s ok 26 /gsubprocess/communicate/cancelled 1041s ok 27 /gsubprocess/communicate/async 1041s ok 28 /gsubprocess/communicate/utf8 1041s # hello world 1041s ok 29 /gsubprocess/communicate/no-pipes 1041s ok 30 /gsubprocess/communicate/separate-stderr 1041s ok 31 /gsubprocess/communicate/stdout-only 1041s # hello world 1041s ok 32 /gsubprocess/communicate/stderr-only 1041s ok 33 /gsubprocess/communicate/stdout-silence 1041s ok 34 /gsubprocess/communicate/nothing 1041s # Start of async tests 1041s ok 35 /gsubprocess/communicate/async/cancelled 1041s # hello world 1041s ok 36 /gsubprocess/communicate/async/no-pipes 1041s ok 37 /gsubprocess/communicate/async/separate-stderr 1041s ok 38 /gsubprocess/communicate/async/stdout-only 1042s # hello world 1042s ok 39 /gsubprocess/communicate/async/stderr-only 1042s ok 40 /gsubprocess/communicate/async/stdout-silence 1042s # Start of cancelled tests 1042s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1042s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1042s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1042s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1042s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1042s # End of cancelled tests 1042s # End of async tests 1042s # Start of utf8 tests 1042s ok 46 /gsubprocess/communicate/utf8/cancelled 1042s ok 47 /gsubprocess/communicate/utf8/async 1042s # hello world 1042s ok 48 /gsubprocess/communicate/utf8/no-pipes 1042s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1042s ok 50 /gsubprocess/communicate/utf8/stdout-only 1042s # hello world 1042s ok 51 /gsubprocess/communicate/utf8/stderr-only 1042s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1042s ok 53 /gsubprocess/communicate/utf8/invalid 1042s # Start of async tests 1042s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1042s # hello world 1042s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1042s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1042s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1042s # hello world 1042s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1042s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1042s ok 60 /gsubprocess/communicate/utf8/async/invalid 1042s # Start of cancelled tests 1042s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1042s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1042s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1042s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1042s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1042s # End of cancelled tests 1042s # End of async tests 1042s # Start of cancelled tests 1042s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1042s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1042s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1042s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1042s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1042s # End of cancelled tests 1042s # End of utf8 tests 1042s # Start of cancelled tests 1042s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1042s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1042s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1042s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1042s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1042s # End of cancelled tests 1042s # End of communicate tests 1042s # Start of env tests 1042s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1042s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1042s ok 76 /gsubprocess/env/inherit 1042s # End of env tests 1042s # Start of pass-fd tests 1042s ok 77 /gsubprocess/pass-fd/basic 1042s ok 78 /gsubprocess/pass-fd/empty-child-setup 1042s ok 79 /gsubprocess/pass-fd/inherit-fds 1042s # End of pass-fd tests 1042s # Start of fd-conflation tests 1042s ok 80 /gsubprocess/fd-conflation/basic 1042s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1042s ok 82 /gsubprocess/fd-conflation/inherit-fds 1042s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1042s # End of fd-conflation tests 1042s # Start of exit-status tests 1042s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1042s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1042s ok 84 /gsubprocess/exit-status/trapped 1042s # End of exit-status tests 1042s # End of gsubprocess tests 1042s ok - glib/gsubprocess.test 1042s # Running test: glib/async-close-output-stream.test 1042s TAP version 14 1042s # random seed: R02Sed318fe7d8f9d62f183809b70d2321f5 1042s 1..3 1042s # Start of close-async tests 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1042s ok 1 /close-async/without-flush 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1042s ok 2 /close-async/with-flush 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1042s ok 3 /close-async/with-async-flush 1042s # End of close-async tests 1042s TAP version 14 1042s # random seed: R02S0a0750a0f3c51fd0891163f61aaef22d 1042s 1..1 1042s # Start of gdbus tests 1042s # Start of sasl tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_FCWW52/gdbus/sasl/server/.dirs/runtime 1042s # New handshake: EXTERNAL with incorrect initial response 1042s # C:“AUTH EXTERNAL 30†1042s # Expect: /^REJECTED.*$/ 1042s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1042s # New handshake: EXTERNAL without initial response, failing to authenticate 1042s # C:“AUTH EXTERNAL†1042s # Expect: /^DATA$/ 1042s ok - glib/async-close-output-stream.test 1042s # Running test: glib/gdbus-sasl.test 1042s # S:“DATA†1042s # C:“DATA 30†1042s # Expect: /^REJECTED.*$/ 1042s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1042s # New handshake: EXTERNAL with initial response 1042s # C:“AUTH EXTERNAL 31303030†1042s # Expect: /^OK [0-9a-f]+$/ 1042s # S:“OK afdcec54052a710b0630dc29681569a5†1042s # New handshake: EXTERNAL without initial response 1042s # C:“AUTH EXTERNAL†1042s # Expect: /^DATA$/ 1042s # S:“DATA†1042s # C:“DATA 31303030†1042s # Expect: /^OK [0-9a-f]+$/ 1042s # S:“OK afdcec54052a710b0630dc29681569a5†1042s # New handshake: EXTERNAL with empty authorization identity 1042s # C:“AUTH EXTERNAL†1042s # Expect: /^DATA$/ 1042s # S:“DATA†1042s # C:“DATA†1042s # Expect: /^OK [0-9a-f]+$/ 1042s # S:“OK afdcec54052a710b0630dc29681569a5†1042s # New handshake: EXTERNAL with empty authorization identity and whitespace 1042s # C:“AUTH EXTERNAL†1042s # Expect: /^DATA$/ 1042s # S:“DATA†1042s # C:“DATA †1042s # Expect: /^OK [0-9a-f]+$/ 1042s # S:“OK afdcec54052a710b0630dc29681569a5†1042s ok 1 /gdbus/sasl/server 1042s # End of sasl tests 1042s # End of gdbus tests 1042s ok - glib/gdbus-sasl.test 1042s # Running test: glib/unix-mounts.test 1042s ok - glib/unix-mounts.test 1042s TAP version 14 1042s # random seed: R02S18e7d2d4dea975d5dfee4d4c2f24d2a0 1042s 1..4 1042s # Start of unix-mounts tests 1042s ok 1 /unix-mounts/is-system-fs-type 1042s ok 2 /unix-mounts/is-system-device-path 1042s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1042s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1042s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1042s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1042s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1042s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1042s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1042s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1042s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1042s ok 3 /unix-mounts/get-mount-points 1042s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1042s ok 4 /unix-mounts/get-mount-entries 1042s # End of unix-mounts tests 1042s # Running test: glib/tls-interaction.test 1042s TAP version 14 1042s # random seed: R02Saf36afe7a19597e51285580837fa2598 1042s 1..42 1042s # Start of tls-interaction tests 1042s # Start of ask-password tests 1042s # Start of invoke-with-loop tests 1042s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1042s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1042s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1042s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1042s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1042s # End of invoke-with-loop tests 1042s # Start of invoke-without-loop tests 1042s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1042s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1042s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1042s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1042s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1042s # End of invoke-without-loop tests 1042s # Start of invoke-in-loop tests 1042s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1042s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1042s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1042s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1042s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1042s # End of invoke-in-loop tests 1042s # Start of sync tests 1042s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1042s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1042s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1042s # End of sync tests 1042s # Start of async tests 1042s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1042s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1042s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1042s # End of async tests 1042s # End of ask-password tests 1042s # Start of request-certificate tests 1042s # Start of invoke-with-loop tests 1042s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1042s ok - glib/tls-interaction.test 1042s # Running test: glib/performance-threaded.test 1042s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1042s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1042s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1042s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1042s # End of invoke-with-loop tests 1042s # Start of invoke-without-loop tests 1042s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1042s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1042s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1042s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1042s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1042s # End of invoke-without-loop tests 1042s # Start of invoke-in-loop tests 1042s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1042s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1042s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1042s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1042s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1042s # End of invoke-in-loop tests 1042s # Start of sync tests 1042s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1042s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1042s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1042s # End of sync tests 1042s # Start of async tests 1042s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1042s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1042s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1042s # End of async tests 1042s # End of request-certificate tests 1042s # End of tls-interaction tests 1042s Running test "liststore-is-a" 1043s 6935 runs, min/avg/max = 0.139/0.143/0.743 ms 1043s Running test "liststore-interface-peek" 1044s 8785 runs, min/avg/max = 0.110/0.113/0.770 ms 1044s Running test "liststore-interface-peek-same" 1044s # Executing: glib/performance-threaded.test 1045s 8785 runs, min/avg/max = 0.110/0.113/0.337 ms 1045s ok - glib/performance-threaded.test 1045s # Running test: glib/memory-settings-backend.test 1045s TAP version 14 1045s # random seed: R02Sbdffbd8969fc45839b36541bca715311 1045s 1..1 1045s # Start of memory-settings-backend tests 1045s ok 1 /memory-settings-backend/extension-point-registered 1045s # End of memory-settings-backend tests 1045s ok - glib/memory-settings-backend.test 1045s # Running test: glib/throws.test 1045s TAP version 14 1045s # random seed: R02S56cf1f53cd9af2d462dbba93a603584c 1045s 1..3 1045s # Start of throws tests 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_RLK152/throws/invoke-gerror/.dirs/runtime 1045s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1045s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1045s ok 1 /throws/invoke-gerror 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_RLK152/throws/vfunc-can-throw-gerror/.dirs/runtime 1045s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1045s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1045s ok 2 /throws/vfunc-can-throw-gerror 1045s ok - glib/throws.test 1045s # Running test: glib/onceinit.test 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_RLK152/throws/callback-can-throw-gerror/.dirs/runtime 1045s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1045s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1045s ok 3 /throws/callback-can-throw-gerror 1045s # End of throws tests 1045s TAP version 14 1045s # random seed: R02S3ed6dd15466cd9cb32b709f56aad13b4 1045s 1..1 1045s # Start of thread tests 1045s ok 1 /thread/onceinit 1045s # End of thread tests 1045s ok - glib/onceinit.test 1045s # Running test: glib/socket.test 1045s TAP version 14 1045s # random seed: R02S15e4ff71f6585d1ca3ef228a98df5ecd 1045s 1..28 1045s # Start of socket tests 1046s ok 1 /socket/ipv4_sync 1046s # slow test /socket/ipv4_sync executed in 1.00 secs 1047s ok 2 /socket/ipv4_async 1047s # slow test /socket/ipv4_async executed in 1.00 secs 1047s ok 3 /socket/ipv6_sync 1047s ok 4 /socket/ipv6_async 1047s ok 5 /socket/ipv6_v4mapped 1048s ok 6 /socket/close_graceful 1048s # slow test /socket/close_graceful executed in 1.00 secs 1048s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1048s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1048s ok 8 /socket/fd_reuse 1048s ok 9 /socket/address 1048s ok 10 /socket/unix-from-fd 1048s ok 11 /socket/unix-connection 1048s ok 12 /socket/unix-connection-ancillary-data 1048s ok 13 /socket/source-postmortem 1048s ok 14 /socket/read_write 1048s ok 15 /socket/read_writev 1048s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1048s ok 16 /socket/receive_bytes 1048s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1048s ok 17 /socket/receive_bytes_from 1048s # Start of ipv4_sync tests 1048s ok 18 /socket/ipv4_sync/datagram 1048s # Start of datagram tests 1049s ok 19 /socket/ipv4_sync/datagram/timeouts 1049s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1049s # End of datagram tests 1049s # End of ipv4_sync tests 1049s # Start of ipv6_sync tests 1049s ok 20 /socket/ipv6_sync/datagram 1049s # Start of datagram tests 1049s # Executing: glib/socket.test 1050s ok 21 /socket/ipv6_sync/datagram/timeouts 1050s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1050s # End of datagram tests 1050s # End of ipv6_sync tests 1050s # Start of reuse tests 1050s ok 22 /socket/reuse/tcp 1050s ok 23 /socket/reuse/udp 1050s # End of reuse tests 1050s # Start of get_available tests 1050s ok - glib/socket.test 1050s ok 24 /socket/get_available/datagram 1050s ok 25 /socket/get_available/stream 1050s # End of get_available tests 1050s # Start of credentials tests 1050s # Supported on this OS: GCredentials:linux-ucred:pid=0 1050s ok 26 /socket/credentials/tcp_client 1050s # Supported on this OS: GCredentials:linux-ucred:pid=0 1050s ok 27 /socket/credentials/tcp_server 1050s # Supported on this OS: GCredentials:linux-ucred:pid=1815,uid=1000,gid=1000 1050s ok 28 /socket/credentials/unix_socketpair 1050s # End of credentials tests 1050s # End of socket tests 1050s # Running test: glib/mappedfile.test 1050s TAP version 14 1050s # random seed: R02S36bce46e1ecd9414ab904f0fc6c94c31 1050s 1..7 1050s # Start of mappedfile tests 1050s ok 1 /mappedfile/basic 1050s ok 2 /mappedfile/empty 1050s ok 3 /mappedfile/device 1050s ok 4 /mappedfile/nonexisting 1050s ok 5 /mappedfile/writable 1050s ok 6 /mappedfile/writable_fd 1050s ok 7 /mappedfile/gbytes 1050s # End of mappedfile tests 1050s TAP version 14 1050s # random seed: R02Sadd3706522055f6941d410ca0c52b14e 1050s 1..1 1050s # Start of gobject tests 1050s # Start of refcount tests 1050s # init 0xf016730 1050s # 1050s ok - glib/mappedfile.test 1050s # Running test: glib/objects-refcount2.test 1050s # . 1050s # . 1050s # . 1050s # . 1050s # . 1050s # . 1050s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1051s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1052s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1053s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # Executing: glib/objects-refcount2.test 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1054s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1055s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1056s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1057s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1058s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # Executing: glib/objects-refcount2.test 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1059s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1060s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1061s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1062s # . 1063s # . 1063s # . 1063s # . 1063s # . 1063s # . 1063s # . 1063s # dispose 0xf016730! 1063s # 1063s ok 1 /gobject/refcount/object-advanced 1063s # slow test /gobject/refcount/object-advanced executed in 12.16 secs 1063s # End of refcount tests 1063s # End of gobject tests 1063s ok - glib/objects-refcount2.test 1063s # Running test: glib/signalgroup.test 1063s TAP version 14 1063s # random seed: R02S3ae2a209ff84c07b7726a28366d2d041 1063s 1..9 1063s # Start of GObject tests 1063s # Start of SignalGroup tests 1063s ok 1 /GObject/SignalGroup/invalid 1063s ok 2 /GObject/SignalGroup/simple 1063s ok 3 /GObject/SignalGroup/changing-target 1063s ok 4 /GObject/SignalGroup/blocking 1063s ok 5 /GObject/SignalGroup/weak-ref-target 1063s ok 6 /GObject/SignalGroup/connect-object 1063s ok 7 /GObject/SignalGroup/signal-parsing 1063s ok 8 /GObject/SignalGroup/properties 1063s ok 9 /GObject/SignalGroup/interface 1063s # Start of signal-parsing tests 1063s # End of signal-parsing tests 1063s # End of SignalGroup tests 1063s # End of GObject tests 1063s ok - glib/signalgroup.test 1063s # Running test: glib/gdbus-method-invocation.test 1063s TAP version 14 1063s # random seed: R02Sfecc397cac8311460603a835cbeb2581 1063s 1..1 1063s # Start of gdbus tests 1063s # Start of method-invocation tests 1063s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/home 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/cache 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/system-config2 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/config 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/system-data2 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/data 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/state 1063s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_AEJY52/gdbus/method-invocation/return/.dirs/runtime 1063s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1063s # Calling org.freedesktop.DBus.Properties.Get 1063s # Calling org.freedesktop.DBus.Properties.Get 1063s # Calling org.freedesktop.DBus.Properties.Get 1063s # Calling org.freedesktop.DBus.Properties.Set 1063s # Calling org.freedesktop.DBus.Properties.GetAll 1063s # Calling org.example.Foo.WrongReturnType 1063s # Calling org.example.Foo.GetFDs 1063s # Calling org.example.Foo.GetFDs 1063s # Calling org.example.Foo.ReturnError 1063s # Calling org.example.Foo.CloseBeforeReturning 1063s ok 1 /gdbus/method-invocation/return 1063s # End of method-invocation tests 1063s # End of gdbus tests 1063s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1063s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1063s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1063s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1063s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1063s ok - glib/gdbus-method-invocation.test 1063s # Running test: glib/refcount-macro.test 1063s TAP version 14 1063s # random seed: R02S2ff2defc5da9fafe0816aa48c0df6e33 1063s 1..4 1063s # Start of refcount tests 1063s ok 1 /refcount/grefcount 1063s ok 2 /refcount/gatomicrefcount 1063s # Start of grefcount tests 1063s ok - glib/refcount-macro.test 1063s ok 3 /refcount/grefcount/saturation 1063s # End of grefcount tests 1063s # Start of gatomicrefcount tests 1063s ok 4 /refcount/gatomicrefcount/saturation 1063s # End of gatomicrefcount tests 1063s # End of refcount tests 1063s # Running test: glib/refcount.test 1063s ok - glib/refcount.test 1063s # Running test: glib/slist.test 1063s TAP version 14 1063s # random seed: R02S11da1c6825bb97b6105e0a0045d90501 1063s 1..4 1063s # Start of refcount tests 1063s ok 1 /refcount/grefcount 1063s ok 2 /refcount/gatomicrefcount 1063s # Start of grefcount tests 1063s ok 3 /refcount/grefcount/saturation 1063s # End of grefcount tests 1063s # Start of gatomicrefcount tests 1063s ok 4 /refcount/gatomicrefcount/saturation 1063s # End of gatomicrefcount tests 1063s # End of refcount tests 1063s ok - glib/slist.test 1063s # Running test: glib/private.test 1063s TAP version 14 1063s # random seed: R02S219fad3df53949a2e4f17234b5b73911 1063s 1..14 1063s # Start of slist tests 1063s ok 1 /slist/sort 1063s ok 2 /slist/sort-with-data 1063s ok 3 /slist/insert-sorted 1063s ok 4 /slist/insert-sorted-with-data 1063s ok 5 /slist/reverse 1063s ok 6 /slist/nth 1063s ok 7 /slist/remove 1063s ok 8 /slist/remove-all 1063s ok 9 /slist/insert 1063s ok 10 /slist/position 1063s ok 11 /slist/concat 1063s ok 12 /slist/copy 1063s # Start of sort tests 1063s ok 13 /slist/sort/stable 1063s # End of sort tests 1063s # Start of copy tests 1063s ok 14 /slist/copy/deep 1063s # End of copy tests 1063s # End of slist tests 1063s TAP version 14 1063s # random seed: R02S1c4df21cb484b310ea007922f52c327d 1063s 1..8 1063s # Start of thread tests 1063s ok 1 /thread/private1 1064s ok 2 /thread/private2 1064s # slow test /thread/private2 executed in 1.11 secs 1064s ok 3 /thread/private3 1064s ok 4 /thread/staticprivate1 1064s ok 5 /thread/staticprivate2 1064s ok 6 /thread/staticprivate3 1064s # Executing: glib/private.test 1065s ok 7 /thread/staticprivate4 1065s # slow test /thread/staticprivate4 executed in 1.11 secs 1065s ok - glib/private.test 1065s ok 8 /thread/staticprivate5 1065s # End of thread tests 1065s # Running test: glib/gnotification.test 1065s TAP version 14 1065s # random seed: R02S9e624a2d4fb03f00341eb1eb8cf4d207 1065s 1..2 1065s # Start of gnotification tests 1065s ok - glib/gnotification.test 1065s ok 1 /gnotification/basic 1065s ok 2 /gnotification/properties 1065s # End of gnotification tests 1065s # Running test: glib/gdbus-proxy.test 1065s TAP version 14 1065s # random seed: R02S49415cbb0b414086b1b6564087464762 1065s 1..5 1065s # Start of gdbus tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/.dirs/runtime 1067s ok 1 /gdbus/proxy 1067s # slow test /gdbus/proxy executed in 1.74 secs 1067s # Start of proxy tests 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-properties/.dirs/runtime 1067s ok 2 /gdbus/proxy/no-properties 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/wellknown-noauto/.dirs/runtime 1067s ok 3 /gdbus/proxy/wellknown-noauto 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/async/.dirs/runtime 1068s ok 4 /gdbus/proxy/async 1068s # slow test /gdbus/proxy/async executed in 1.74 secs 1068s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/home 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/cache 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/system-config2 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/config 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/system-data2 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/data 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/state 1068s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_M5PR52/gdbus/proxy/no-match-rule/.dirs/runtime 1068s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1068s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1069s # Executing: glib/gdbus-proxy.test 1070s ok - glib/gdbus-proxy.test 1070s # Running test: glib/object.test 1070s ok 5 /gdbus/proxy/no-match-rule 1070s # slow test /gdbus/proxy/no-match-rule executed in 1.74 secs 1070s # End of proxy tests 1070s # End of gdbus tests 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok - glib/object.test 1070s # Running test: glib/gdbus-names.test 1070s TAP version 14 1070s # random seed: R02S202a90cc14d474c1db7fa76ffc4080c1 1070s 1..2 1070s # Start of object tests 1070s # Start of constructor tests 1070s ok 1 /object/constructor/singleton 1070s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1070s # End of constructor tests 1070s # End of object tests 1070s TAP version 14 1070s # random seed: R02S998d762f4415ff5cd2ce26989375ff89 1070s 1..10 1070s # Start of gdbus tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/validate-names/.dirs/runtime 1070s ok 1 /gdbus/validate-names 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-own-name/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 2 /gdbus/bus-own-name 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 3 /gdbus/bus-watch-name 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 4 /gdbus/bus-watch-name-auto-start 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s dbus-daemon[1940]: [session uid=1000 pid=1940 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=1931 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 1070s # Acquired a message bus connection 1070s dbus-daemon[1940]: [session uid=1000 pid=1940 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 1070s # Acquired the name org.gtk.GDBus.FakeService 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 6 /gdbus/bus-watch-name-closures 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 7 /gdbus/bus-watch-name-closures-auto-start 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-watch-different-context/.dirs/runtime 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 8 /gdbus/bus-watch-different-context 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/bus-unwatch-early/.dirs/runtime 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1070s ok 9 /gdbus/bus-unwatch-early 1070s ok - glib/gdbus-names.test 1070s # Running test: glib/uri.test 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_RUI752/gdbus/escape-object-path/.dirs/runtime 1070s ok 10 /gdbus/escape-object-path 1070s # End of gdbus tests 1070s TAP version 14 1070s # random seed: R02S37593c512a34dd0cd1c032ac714f596b 1070s 1..24 1070s # Start of uri tests 1070s ok 1 /uri/file-to-uri 1070s ok 2 /uri/file-from-uri 1070s ok 3 /uri/file-roundtrip 1070s ok 4 /uri/list 1070s # Test 0: %2Babc %4F 1070s # Test 1: %2Babc %4F 1070s # Test 2: %00abc %4F 1070s # Test 3: /cursors/none.png 1070s # Test 4: /cursors%2fbad-subdir/none.png 1070s # Test 5: %0 1070s # Test 6: %ra 1070s # Test 7: %2r 1070s # Test 8: Timm B?der 1070s # Test 9: (null) 1070s ok 5 /uri/unescape-string 1070s ok 6 /uri/unescape-segment 1070s # Test 0: abcdefgABCDEFG._~ 1070s # Test 1: :+ \\?# 1070s # Test 2: a+b:c 1070s # Test 3: a+b:c\303\234 1070s # Test 4: \374;\322 1070s # Test 5: \303\261\303( 1070s ok 7 /uri/escape-string 1070s ok 8 /uri/escape-bytes 1070s ok 9 /uri/scheme 1070s ok 10 /uri/build 1070s ok 11 /uri/split 1070s ok 12 /uri/is_valid 1070s ok 13 /uri/to-string 1070s ok 14 /uri/join 1070s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1070s # Combination 0 1070s # Combination 1 1070s # Combination 2 1070s # Combination 3 1070s # Combination 4 1070s # Combination 5 1070s # Combination 6 1070s # Combination 7 1070s # Combination 8 1070s # Combination 9 1070s # Combination 10 1070s # Combination 11 1070s # Combination 12 1070s # Combination 13 1070s # Combination 14 1070s # Combination 15 1070s # Combination 16 1070s # Combination 17 1070s # Combination 18 1070s # Combination 19 1070s # Combination 20 1070s # Combination 21 1070s # Combination 22 1070s # Combination 23 1070s # Combination 24 1070s # Combination 25 1070s # Combination 26 1070s # Combination 27 1070s # Combination 28 1070s # Combination 29 1070s # Combination 30 1070s # Combination 31 1070s # Combination 32 1070s # Combination 33 1070s # Combination 34 1070s # Combination 35 1070s # Combination 36 1070s # Combination 37 1070s # Combination 38 1070s # Combination 39 1070s # Combination 40 1070s # Combination 41 1070s # Combination 42 1070s # Combination 43 1070s # Combination 44 1070s # Combination 45 1070s # Combination 46 1070s # Combination 47 1070s # Combination 48 1070s # Combination 49 1070s # Combination 50 1070s # Combination 51 1070s # Combination 52 1070s # Combination 53 1070s # Combination 54 1070s # Combination 55 1070s # Combination 56 1070s # Combination 57 1070s # Combination 58 1070s # Combination 59 1070s # Combination 60 1070s ok - glib/uri.test 1070s # Running test: glib/testing.test 1070s # Combination 61 1070s # Combination 62 1070s # Combination 63 1070s # Combination 64 1070s # Combination 65 1070s # Combination 66 1070s # Combination 67 1070s # Combination 68 1070s # Combination 69 1070s # Combination 70 1070s # Combination 71 1070s # Combination 72 1070s # Combination 73 1070s # Combination 74 1070s # Combination 75 1070s # Combination 76 1070s # Combination 77 1070s # Combination 78 1070s # Combination 79 1070s # Combination 80 1070s # Combination 81 1070s # Combination 82 1070s # Combination 83 1070s # Combination 84 1070s # Combination 85 1070s # Combination 86 1070s # Combination 87 1070s # Combination 88 1070s # Combination 89 1070s # Combination 90 1070s # Combination 91 1070s # Combination 92 1070s # Combination 93 1070s # Combination 94 1070s # Combination 95 1070s # Combination 96 1070s # Combination 97 1070s # Combination 98 1070s # Combination 99 1070s # Combination 100 1070s # Combination 101 1070s # Combination 102 1070s # Combination 103 1070s # Combination 104 1070s # Combination 105 1070s # Combination 106 1070s # Combination 107 1070s # Combination 108 1070s # Combination 109 1070s # Combination 110 1070s # Combination 111 1070s # Combination 112 1070s # Combination 113 1070s # Combination 114 1070s # Combination 115 1070s # Combination 116 1070s # Combination 117 1070s # Combination 118 1070s # Combination 119 1070s # Combination 120 1070s # Combination 121 1070s # Combination 122 1070s # Combination 123 1070s # Combination 124 1070s # Combination 125 1070s # Combination 126 1070s # Combination 127 1070s # Combination 128 1070s # Combination 129 1070s # Combination 130 1070s # Combination 131 1070s # Combination 132 1070s # Combination 133 1070s # Combination 134 1070s # Combination 135 1070s # Combination 136 1070s # Combination 137 1070s # Combination 138 1070s # Combination 139 1070s # Combination 140 1070s # Combination 141 1070s # Combination 142 1070s # Combination 143 1070s # Combination 144 1070s # Combination 145 1070s # Combination 146 1070s # Combination 147 1070s # Combination 148 1070s # Combination 149 1070s # Combination 150 1070s # Combination 151 1070s # Combination 152 1070s # Combination 153 1070s # Combination 154 1070s # Combination 155 1070s # Combination 156 1070s # Combination 157 1070s # Combination 158 1070s # Combination 159 1070s # Combination 160 1070s # Combination 161 1070s # Combination 162 1070s # Combination 163 1070s # Combination 164 1070s # Combination 165 1070s # Combination 166 1070s # Combination 167 1070s # Combination 168 1070s # Combination 169 1070s # Combination 170 1070s # Combination 171 1070s # Combination 172 1070s # Combination 173 1070s # Combination 174 1070s # Combination 175 1070s # Combination 176 1070s # Combination 177 1070s # Combination 178 1070s # Combination 179 1070s # Combination 180 1070s # Combination 181 1070s # Combination 182 1070s # Combination 183 1070s # Combination 184 1070s # Combination 185 1070s # Combination 186 1070s # Combination 187 1070s # Combination 188 1070s # Combination 189 1070s # Combination 190 1070s # Combination 191 1070s # Combination 192 1070s # Combination 193 1070s # Combination 194 1070s # Combination 195 1070s # Combination 196 1070s # Combination 197 1070s # Combination 198 1070s # Combination 199 1070s # Combination 200 1070s # Combination 201 1070s # Combination 202 1070s # Combination 203 1070s # Combination 204 1070s # Combination 205 1070s # Combination 206 1070s # Combination 207 1070s # Combination 208 1070s # Combination 209 1070s # Combination 210 1070s # Combination 211 1070s # Combination 212 1070s # Combination 213 1070s # Combination 214 1070s # Combination 215 1070s # Combination 216 1070s # Combination 217 1070s # Combination 218 1070s # Combination 219 1070s # Combination 220 1070s # Combination 221 1070s # Combination 222 1070s # Combination 223 1070s # Combination 224 1070s # Combination 225 1070s # Combination 226 1070s # Combination 227 1070s # Combination 228 1070s # Combination 229 1070s # Combination 230 1070s # Combination 231 1070s # Combination 232 1070s # Combination 233 1070s # Combination 234 1070s # Combination 235 1070s # Combination 236 1070s # Combination 237 1070s # Combination 238 1070s # Combination 239 1070s # Combination 240 1070s # Combination 241 1070s # Combination 242 1070s # Combination 243 1070s # Combination 244 1070s # Combination 245 1070s # Combination 246 1070s # Combination 247 1070s # Combination 248 1070s # Combination 249 1070s # Combination 250 1070s # Combination 251 1070s # Combination 252 1070s # Combination 253 1070s # Combination 254 1070s # Combination 255 1070s ok 15 /uri/join-split-round-trip 1070s ok 16 /uri/normalize 1070s # Start of unescape-bytes tests 1070s # Test 0: %00%00 1070s # Test 1: /cursors/none.png 1070s # Test 2: /cursors%2fbad-subdir/none.png 1070s # Test 3: %% 1070s # Test 4: % 1070s ok 17 /uri/unescape-bytes/nul-terminated 1070s # Test 0: %00%00 1070s # Test 1: /cursors/none.png 1070s # Test 2: /cursors%2fbad-subdir/none.png 1070s # Test 3: %% 1070s # Test 4: % 1070s ok 18 /uri/unescape-bytes/length 1070s # End of unescape-bytes tests 1070s # Start of parsing tests 1070s # Test 0: foo: 1070s # Test 1: file:/dev/null 1070s # Test 2: file:///dev/null 1070s # Test 3: ftp://user@host/path 1070s # Test 4: ftp://user@host:9999/path 1070s # Test 5: ftp://user:password@host/path 1070s # Test 6: ftp://user:password@host:9999/path 1070s # Test 7: ftp://user:password@host 1070s # Test 8: http://us%65r@host 1070s # Test 9: http://us%40r@host 1070s # Test 10: http://us%3ar@host 1070s # Test 11: http://us%2fr@host 1070s # Test 12: http://us%3fr@host 1070s # Test 13: http://host?query 1070s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1070s # 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 1070s # Test 16: http://space/%20 1070s # Test 17: http://delims/%3C%3E%23%25%22 1070s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1070s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1070s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1070s # Test 21: http://[3ffe:2a00:100:7031::1] 1070s # Test 22: http://[1080::8:800:200C:417A]/foo 1070s # Test 23: http://[::192.9.5.5]/ipng 1070s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1070s # Test 25: http://[2010:836B:4179::836B:4179] 1070s # Test 26: http://host/path with spaces 1070s # Test 27: http://host/path 1070s # Test 28: http://host/path 1070s # Test 29: http://host 1070s # Test 30: http://host:999 1070s # Test 31: http://host/pa 1070s # th 1070s # Test 32: http: 1070s # //host/path 1070s # Test 33: http:// host/path 1070s # Test 34: http://host/path? 1070s # Test 35: http://host/path# 1070s # Test 36: http://host/path% 1070s # Test 37: http://h%ost/path 1070s # Test 38: http://host/path%% 1070s # Test 39: http://host/path%%% 1070s # Test 40: http://host/path%/x/ 1070s # Test 41: http://host/path%0x/ 1070s # Test 42: http://host/path%ax 1070s # Test 43: http://host/p?th/ 1070s # Test 44: HTTP://////////////// 1070s # Test 45: http://@host 1070s # Test 46: http://:@host 1070s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1070s # Test 48: http://example.com/.. 1070s # Test 49: foo0://host/path 1070s # Test 50: f0.o://host/path 1070s # Test 51: http++://host/path 1070s # Test 52: http-ish://host/path 1070s # Test 53: http://[fe80::dead:beef%]/ 1070s # Test 54: http://[fe80::dead:beef%em1]/ 1070s # Test 55: http://[fe80::dead:beef%em1]/ 1070s # Test 56: http://[fe80::dead:beef%25em1]/ 1070s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1070s # Test 58: http://[fe80::dead:beef%25em%31]/ 1070s # Test 59: http://[fe80::dead:beef%10]/ 1070s # Test 60: http://[fe80::dead:beef%10]/ 1070s # Test 61: http://[fe80::dead:beef%25]/ 1070s # Test 62: http://[fe80::dead:beef%25]/ 1070s # Test 63: http://[192.168.0.1%25em1]/ 1070s # Test 64: http://[fe80::dead:beef%2em1]/ 1070s # Test 65: http://[fe80::dead:beef%2em1]/ 1070s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1070s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1070s # Test 68: http://xn--mixed-?p/ 1070s # Test 69: data:./// 1070s # Test 70: data:/.// 1070s ok 19 /uri/parsing/absolute 1070s ok 20 /uri/parsing/relative 1070s # End of parsing tests 1070s # Start of iter-params tests 1070s # URI 0: p1=foo&p2=bar;p3=baz 1070s # URI 1: p1=foo&p2=bar 1070s # URI 2: p1=foo&&P1=bar 1070s # URI 3: %00=foo 1070s # URI 4: p1=%00 1070s # URI 5: p1=foo&p1=bar 1070s # URI 6: p1=foo&P1=bar 1070s # URI 7: =% 1070s # URI 8: = 1070s # URI 9: foo 1070s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1070s ok 21 /uri/iter-params/nul-terminated 1070s # URI 0: p1=foo&p2=bar;p3=baz 1070s # URI 1: p1=foo&p2=bar 1070s # URI 2: p1=foo&&P1=bar 1070s # URI 3: %00=foo 1070s # URI 4: p1=%00 1070s # URI 5: p1=foo&p1=bar 1070s # URI 6: p1=foo&P1=bar 1070s # URI 7: =% 1070s # URI 8: = 1070s # URI 9: foo 1070s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1070s ok 22 /uri/iter-params/length 1070s # End of iter-params tests 1070s # Start of parse-params tests 1070s # URI 0: p1=foo&p2=bar;p3=baz 1070s # URI 1: p1=foo&p2=bar 1070s # URI 2: p1=foo&&P1=bar 1070s # URI 3: %00=foo 1070s # URI 4: p1=%00 1070s # URI 5: p1=foo&p1=bar 1070s # URI 6: p1=foo&P1=bar 1070s # URI 7: =% 1070s # URI 8: = 1070s # URI 9: foo 1070s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1070s ok 23 /uri/parse-params/nul-terminated 1070s # URI 0: p1=foo&p2=bar;p3=baz 1070s # URI 1: p1=foo&p2=bar 1070s # URI 2: p1=foo&&P1=bar 1070s # URI 3: %00=foo 1070s # URI 4: p1=%00 1070s # URI 5: p1=foo&p1=bar 1070s # URI 6: p1=foo&P1=bar 1070s # URI 7: =% 1070s # URI 8: = 1070s # URI 9: foo 1070s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1070s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1070s ok 24 /uri/parse-params/length 1070s # End of parse-params tests 1070s # End of uri tests 1070s TAP version 14 1070s # random seed: R02S9221c51b4fa1f3476df9087dd4ac2021 1070s 1..1 1070s # Start of assert tests 1070s ok 1 /assert/finalize_object 1070s # Start of finalize_object tests 1070s # Start of subprocess tests 1070s # End of subprocess tests 1070s # End of finalize_object tests 1070s # End of assert tests 1070s ok - glib/testing.test 1070s # Running test: glib/registered-type-info.test 1070s TAP version 14 1070s # random seed: R02S1f83a1a3c8b126b572c278f0dd103a76 1070s 1..1 1070s # Start of registered-type-info tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_NUT352/registered-type-info/boxed/.dirs/runtime 1070s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1070s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1070s # Expecting CClosure to not be boxed 1070s # Expecting TypeCValue to not be boxed 1070s # Expecting InitiallyUnownedClass to not be boxed 1070s # Expecting BookmarkFile to be boxed 1070s # Expecting Closure to be boxed 1070s # Expecting Object to not be boxed 1070s ok 1 /registered-type-info/boxed 1070s # End of registered-type-info tests 1070s ok - glib/registered-type-info.test 1070s # Running test: glib/power-profile-monitor-dbus.test 1071s TAP version 13 1071s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1071s 1..1 1071s ok - glib/power-profile-monitor-dbus.test 1071s # Running test: glib/portal-support-flatpak-none.test 1071s TAP version 14 1071s # random seed: R02S78c8792ff210efacc47483c2ee1bdae5 1071s 1..1 1071s # Start of portal-support tests 1071s # Start of flatpak tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/runtime 1071s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_00GS52/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1071s ok 1 /portal-support/flatpak/none 1071s # End of flatpak tests 1071s # End of portal-support tests 1071s ok - glib/portal-support-flatpak-none.test 1071s # Running test: glib/search-utils.test 1071s TAP version 14 1071s # random seed: R02Sc3a907aca599575f1310500c0aac5392 1071s # GLib-DEBUG: Current user locale: C.UTF-8 1071s 1..6 1071s # Start of search tests 1071s # GLib-DEBUG: Started 1071s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1071s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1071s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1071s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1071s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1071s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1071s ok 1 /search/basic 1071s # GLib-DEBUG: Started 1071s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1071s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1071s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1071s # GLib-DEBUG: 'AzaÃs' - 'Azais' should NOT match: OK 1071s # GLib-DEBUG: 'Azais' - 'AzaÃs' should match: OK 1071s ok 2 /search/composed 1071s # GLib-DEBUG: Started 1071s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1071s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1071s ok 3 /search/decomposed 1071s # GLib-DEBUG: Started 1071s ok - glib/search-utils.test 1071s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1071s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1071s ok 4 /search/turkish 1071s # GLib-DEBUG: Started 1071s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 1071s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 1071s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 1071s ok 5 /search/c_locale_unicode 1071s # GLib-DEBUG: Started 1071s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1071s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1071s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1071s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1071s ok 6 /search/multi_words 1071s # End of search tests 1071s TAP version 14 1071s # random seed: R02Scccb68504f80fe85f25b27c6a76ffaec 1071s 1..2 1071s # Start of atomic tests 1071s ok 1 /atomic/types 1071s # Running test: glib/atomic-c-17.test 1071s ok 2 /atomic/threaded 1071s # End of atomic tests 1071s ok - glib/atomic-c-17.test 1071s TAP version 14 1071s # random seed: R02S437d36c60e2adc126545fa3cbbf782a5 1071s 1..2 1071s # Start of socket tests 1071s # Start of address tests 1071s # Start of unix tests 1071s ok 1 /socket/address/unix/construct 1071s ok 2 /socket/address/unix/to-string 1071s # End of unix tests 1071s # End of address tests 1071s # End of socket tests 1071s # Running test: glib/socket-address.test 1071s ok - glib/socket-address.test 1071s TAP version 14 1071s # random seed: R02Scbda2f70d7b2ea2fc4797aaf248f4aa7 1071s ** 1071s 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?") 1071s # 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?") 1071s # Running test: glib/testing-nonfatal.test 1071s ok - glib/testing-nonfatal.test 1071s # Running test: glib/gdbus-address-get-session.test 1071s TAP version 14 1071s # random seed: R02S756c67c55453699cfa9e280732d3ef05 1071s 1..2 1071s # Start of gdbus tests 1071s ok 1 /gdbus/x11-autolaunch 1071s ok - glib/gdbus-address-get-session.test 1071s # Running test: glib/vfs.test 1071s ok 2 /gdbus/xdg-runtime 1071s # End of gdbus tests 1071s TAP version 14 1071s # random seed: R02S069b7b3cc1001f0ee1ce48e3f7d9a747 1071s 1..3 1071s # Start of gvfs tests 1071s ok 1 /gvfs/local 1071s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1071s ok 2 /gvfs/register-scheme 1071s # Start of resource tests 1071s ok - glib/vfs.test 1071s # Running test: glib/singleton.test 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1071s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1071s ok 3 /gvfs/resource/malformed-escaping 1071s # End of resource tests 1071s # End of gvfs tests 1071s TAP version 14 1071s # random seed: R02Sebc50c8654e7891c4c31bf95936d3d0c 1071s 1..2 1071s # Start of gobject tests 1071s # Start of singleton tests 1071s ok 1 /gobject/singleton/construction 1071s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1071s ok 2 /gobject/singleton/construct-property 1071s # End of singleton tests 1071s # End of gobject tests 1071s ok - glib/singleton.test 1071s # Running test: glib/cxx-2b.test 1071s TAP version 14 1071s # random seed: R02Sb07ea49ca0e3c3f5728f08c4adfa9883 1071s 1..2 1071s # Start of gtask tests 1071s # 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. 1071s ok 1 /gtask/name 1071s # Start of name tests 1071s # 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. 1071s ok 2 /gtask/name/macro-wrapper 1071s # End of name tests 1071s # End of gtask tests 1071s TAP version 14 1071s # random seed: R02S19e54c2927fbadc5d3638165a2add15b 1071s 1..71 1071s # Start of markup tests 1071s # Start of parse tests 1071s ok 1 /markup/parse/fail-1.gmarkup 1071s ok 2 /markup/parse/fail-10.gmarkup 1071s ok 3 /markup/parse/fail-11.gmarkup 1071s ok 4 /markup/parse/fail-12.gmarkup 1071s ok 5 /markup/parse/fail-13.gmarkup 1071s ok 6 /markup/parse/fail-14.gmarkup 1071s ok 7 /markup/parse/fail-15.gmarkup 1071s ok 8 /markup/parse/fail-16.gmarkup 1071s ok 9 /markup/parse/fail-17.gmarkup 1071s ok 10 /markup/parse/fail-18.gmarkup 1071s ok 11 /markup/parse/fail-19.gmarkup 1071s ok 12 /markup/parse/fail-2.gmarkup 1071s ok 13 /markup/parse/fail-20.gmarkup 1071s ok 14 /markup/parse/fail-21.gmarkup 1071s ok 15 /markup/parse/fail-22.gmarkup 1071s ok 16 /markup/parse/fail-23.gmarkup 1071s ok 17 /markup/parse/fail-24.gmarkup 1071s ok 18 /markup/parse/fail-25.gmarkup 1071s ok 19 /markup/parse/fail-26.gmarkup 1071s ok 20 /markup/parse/fail-27.gmarkup 1071s ok 21 /markup/parse/fail-28.gmarkup 1071s ok 22 /markup/parse/fail-29.gmarkup 1071s ok 23 /markup/parse/fail-3.gmarkup 1071s ok 24 /markup/parse/fail-30.gmarkup 1071s ok 25 /markup/parse/fail-31.gmarkup 1071s ok 26 /markup/parse/fail-32.gmarkup 1071s ok 27 /markup/parse/fail-33.gmarkup 1071s ok 28 /markup/parse/fail-34.gmarkup 1071s ok 29 /markup/parse/fail-35.gmarkup 1071s ok 30 /markup/parse/fail-36.gmarkup 1071s ok 31 /markup/parse/fail-37.gmarkup 1071s ok 32 /markup/parse/fail-38.gmarkup 1071s ok 33 /markup/parse/fail-39.gmarkup 1071s ok 34 /markup/parse/fail-4.gmarkup 1071s ok 35 /markup/parse/fail-40.gmarkup 1071s ok 36 /markup/parse/fail-41.gmarkup 1071s ok 37 /markup/parse/fail-42.gmarkup 1071s ok 38 /markup/parse/fail-43.gmarkup 1071s ok 39 /markup/parse/fail-44.gmarkup 1071s ok 40 /markup/parse/fail-45.gmarkup 1071s ok 41 /markup/parse/fail-46.gmarkup 1071s ok 42 /markup/parse/fail-47.gmarkup 1071s ok 43 /markup/parse/fail-48.gmarkup 1071s ok 44 /markup/parse/fail-49.gmarkup 1071s ok 45 /markup/parse/fail-5.gmarkup 1071s ok 46 /markup/parse/fail-50.gmarkup 1071s ok 47 /markup/parse/fail-51.gmarkup 1071s ok 48 /markup/parse/fail-52.gmarkup 1071s ok 49 /markup/parse/fail-53.gmarkup 1071s ok - glib/cxx-2b.test 1071s # Running test: glib/markup-parse.test 1071s ok 50 /markup/parse/fail-54.gmarkup 1071s ok 51 /markup/parse/fail-6.gmarkup 1071s ok 52 /markup/parse/fail-7.gmarkup 1071s ok 53 /markup/parse/fail-8.gmarkup 1071s ok 54 /markup/parse/fail-9.gmarkup 1071s ok 55 /markup/parse/valid-1.gmarkup 1071s ok 56 /markup/parse/valid-10.gmarkup 1071s ok 57 /markup/parse/valid-11.gmarkup 1071s ok 58 /markup/parse/valid-12.gmarkup 1071s ok 59 /markup/parse/valid-13.gmarkup 1071s ok 60 /markup/parse/valid-14.gmarkup 1071s ok 61 /markup/parse/valid-15.gmarkup 1071s ok 62 /markup/parse/valid-16.gmarkup 1071s ok 63 /markup/parse/valid-17.gmarkup 1071s ok 64 /markup/parse/valid-2.gmarkup 1071s ok 65 /markup/parse/valid-3.gmarkup 1071s ok 66 /markup/parse/valid-4.gmarkup 1071s ok 67 /markup/parse/valid-5.gmarkup 1071s ok 68 /markup/parse/valid-6.gmarkup 1071s ok 69 /markup/parse/valid-7.gmarkup 1071s ok 70 /markup/parse/valid-8.gmarkup 1071s ok - glib/markup-parse.test 1071s # Running test: glib/notify-init2.test 1071s ok 71 /markup/parse/valid-9.gmarkup 1071s # End of parse tests 1071s # End of markup tests 1071s TAP version 14 1071s # random seed: R02S4cfac6d5a8ea894fd7b5ebd483844ed2 1071s 1..1 1071s # Start of properties tests 1071s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1071s ok 1 /properties/notify-in-init2 1071s # End of properties tests 1071s TAP version 14 1071s # random seed: R02Sdb852252442034e0a059162e87bdbd5e 1071s 1..2 1071s # Start of gtask tests 1071s # 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. 1071s ok 1 /gtask/name 1071s # Start of name tests 1071s # 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. 1071s ok 2 /gtask/name/macro-wrapper 1071s # End of name tests 1071s # End of gtask tests 1071s ok - glib/notify-init2.test 1071s # Running test: glib/cxx-98.test 1071s ok - glib/cxx-98.test 1071s # Running test: glib/gdbus-serialization.test 1071s TAP version 14 1071s # random seed: R02S055d03590579d476101ffe20df80023b 1071s 1..18 1071s # Start of gdbus tests 1071s # Start of message-serialize tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/basic/.dirs/runtime 1071s ok 1 /gdbus/message-serialize/basic 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/complex/.dirs/runtime 1071s ok 2 /gdbus/message-serialize/complex 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/invalid/.dirs/runtime 1071s ok 3 /gdbus/message-serialize/invalid 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/.dirs/runtime 1071s ok 4 /gdbus/message-serialize/header-checks 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/double-array/.dirs/runtime 1071s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1071s ok 5 /gdbus/message-serialize/double-array 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/empty-structure/.dirs/runtime 1071s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1071s ok 6 /gdbus/message-serialize/empty-structure 1071s # Start of header-checks tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1071s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1071s ok 7 /gdbus/message-serialize/header-checks/valid 1071s # End of header-checks tests 1071s # End of message-serialize tests 1071s # Start of message-parse tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1071s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1071s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/non-signature-header/.dirs/runtime 1071s ok 9 /gdbus/message-parse/non-signature-header 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-signature-header/.dirs/runtime 1071s ok 10 /gdbus/message-parse/empty-signature-header 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1071s ok 11 /gdbus/message-parse/multiple-signature-header 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1071s ok 12 /gdbus/message-parse/over-long-signature-header 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1071s ok 13 /gdbus/message-parse/deep-header-nesting 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1071s ok 14 /gdbus/message-parse/deep-body-nesting 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/truncated/.dirs/runtime 1071s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1071s ok 15 /gdbus/message-parse/truncated 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/empty-structure/.dirs/runtime 1071s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1071s ok 16 /gdbus/message-parse/empty-structure 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/missing-header/.dirs/runtime 1071s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1071s ok 17 /gdbus/message-parse/missing-header 1071s ok - glib/gdbus-serialization.test 1071s # Running test: glib/io-stream.test 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_K0XT52/gdbus/message-parse/invalid-header-type/.dirs/runtime 1071s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1071s ok 18 /gdbus/message-parse/invalid-header-type 1071s # End of message-parse tests 1071s # End of gdbus tests 1071s TAP version 14 1071s # random seed: R02Sa6ebe4bf919916089fbaf33d6797aeba 1071s 1..3 1071s # Start of io-stream tests 1071s ok 1 /io-stream/copy-chunks 1071s # Start of close tests 1071s # Start of async tests 1071s ok 2 /io-stream/close/async/memory 1071s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1071s ok 3 /io-stream/close/async/file 1071s # End of async tests 1071s # End of close tests 1071s # End of io-stream tests 1071s ok - glib/io-stream.test 1071s # Running test: glib/stream-rw_all.test 1071s TAP version 14 1071s # random seed: R02S4e9fe92d9a421a653eb1350fc2099f12 1071s 1..3 1071s # Start of stream tests 1071s # Start of read_all_async tests 1071s ok 1 /stream/read_all_async/memory 1071s # End of read_all_async tests 1071s # Start of write_all_async tests 1071s ok 2 /stream/write_all_async/memory 1071s # End of write_all_async tests 1071s # Start of read_write_all_async tests 1071s ok 3 /stream/read_write_all_async/pipe 1071s # End of read_write_all_async tests 1071s # End of stream tests 1071s ok - glib/stream-rw_all.test 1071s # Running test: glib/gdbus-exit-on-close.test 1071s TAP version 14 1071s # random seed: R02S07f25b21acf2a93ca0ba972bb946f63f 1071s 1..4 1071s # Start of gdbus tests 1071s # Start of exit-on-close tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/default/.dirs/runtime 1071s ok 1 /gdbus/exit-on-close/default 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/true/.dirs/runtime 1071s ok 2 /gdbus/exit-on-close/true 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/false/.dirs/runtime 1071s ok 3 /gdbus/exit-on-close/false 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_55FU52/gdbus/exit-on-close/we-close/.dirs/runtime 1071s ok 4 /gdbus/exit-on-close/we-close 1071s # Start of default tests 1071s # End of default tests 1071s # Start of true tests 1071s # End of true tests 1071s # Start of false tests 1071s # End of false tests 1071s # Start of we-close tests 1071s # End of we-close tests 1071s # End of exit-on-close tests 1071s # End of gdbus tests 1071s ok - glib/gdbus-exit-on-close.test 1071s # Running test: glib/mem-overflow.test 1071s TAP version 14 1071s # random seed: R02Sbf562a674ebe43ae5e3bb4f17f234914 1071s 1..2 1071s # Start of mem tests 1071s ok 1 /mem/overflow 1071s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1071s ok 2 /mem/empty-alloc 1071s # Start of overflow tests 1071s # Start of subprocess tests 1071s # End of subprocess tests 1071s # End of overflow tests 1071s # Start of empty-alloc tests 1071s # End of empty-alloc tests 1071s # End of mem tests 1071s ok - glib/mem-overflow.test 1071s # Running test: glib/fileutils.test 1071s TAP version 14 1071s # random seed: R02Sb56cc81135fbce61820eebd235899fd0 1071s 1..27 1071s # Start of fileutils tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/paths/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/paths/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/paths/.dirs/runtime 1071s ok 1 /fileutils/paths 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/build-path/.dirs/runtime 1071s ok 2 /fileutils/build-path 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/build-pathv/.dirs/runtime 1071s ok 3 /fileutils/build-pathv 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/build-filename/.dirs/runtime 1072s ok 4 /fileutils/build-filename 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/build-filenamev/.dirs/runtime 1072s ok 5 /fileutils/build-filenamev 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents/.dirs/runtime 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Checking g_mkdir_with_parents() in subdir ./hum/ 1072s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1072s ok 6 /fileutils/mkdir-with-parents 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/mkdir-with-parents-permission/.dirs/runtime 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s ok 7 /fileutils/mkdir-with-parents-permission 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/format-size-for-display/.dirs/runtime 1072s ok 8 /fileutils/format-size-for-display 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/errors/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/errors/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/errors/.dirs/runtime 1072s ok 9 /fileutils/errors 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/basename/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/basename/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/basename/.dirs/runtime 1072s ok 10 /fileutils/basename 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/get-basename/.dirs/runtime 1072s ok 11 /fileutils/get-basename 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/dirname/.dirs/runtime 1072s ok 12 /fileutils/dirname 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/dir-make-tmp/.dirs/runtime 1072s ok 13 /fileutils/dir-make-tmp 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/file-open-tmp/.dirs/runtime 1072s ok 14 /fileutils/file-open-tmp 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/file-test/.dirs/runtime 1072s ok 15 /fileutils/file-test 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/mkstemp/.dirs/runtime 1072s ok 16 /fileutils/mkstemp 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/mkdtemp/.dirs/runtime 1072s ok 17 /fileutils/mkdtemp 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/get-contents/.dirs/runtime 1072s ok 18 /fileutils/get-contents 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/get-contents-large-file/.dirs/runtime 1072s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/set-contents/.dirs/runtime 1072s ok 20 /fileutils/set-contents 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/.dirs/runtime 1072s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1072s # Flags 0 and test 0 1072s # Flags 0 and test 1 1072s # Flags 0 and test 2 1072s # Flags 0 and test 3 1072s # Flags 0 and test 4 1072s # Flags 0 and test 5 1072s # Flags 1 and test 0 1072s # Flags 1 and test 1 1072s # Flags 1 and test 2 1072s # Flags 1 and test 3 1072s # Flags 1 and test 4 1072s # Flags 1 and test 5 1072s # Flags 2 and test 0 1072s # Flags 2 and test 1 1072s # Flags 2 and test 2 1072s # Flags 2 and test 3 1072s # Flags 2 and test 4 1072s # Flags 2 and test 5 1072s # Flags 3 and test 0 1072s # Flags 3 and test 1 1072s # Flags 3 and test 2 1072s # Flags 3 and test 3 1072s # Flags 3 and test 4 1072s # Flags 3 and test 5 1072s # Flags 4 and test 0 1072s # Flags 4 and test 1 1072s # Flags 4 and test 2 1072s # Flags 4 and test 3 1072s # Flags 4 and test 4 1072s # Flags 4 and test 5 1072s # Flags 5 and test 0 1072s # Flags 5 and test 1 1072s # Flags 5 and test 2 1072s # Flags 5 and test 3 1072s # Flags 5 and test 4 1072s # Flags 5 and test 5 1072s # Flags 6 and test 0 1072s # Flags 6 and test 1 1072s # Flags 6 and test 2 1072s # Flags 6 and test 3 1072s # Flags 6 and test 4 1072s # Flags 6 and test 5 1072s ok 21 /fileutils/set-contents-full 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/read-link/.dirs/runtime 1072s ok 22 /fileutils/read-link 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/stdio-wrappers/.dirs/runtime 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s ok 23 /fileutils/stdio-wrappers 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/fopen-modes/.dirs/runtime 1072s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1072s # Testing fopen() mode 'w' 1072s # Testing fopen() mode 'r' 1072s # Testing fopen() mode 'a' 1072s # Testing fopen() mode 'w+' 1072s # Testing fopen() mode 'r+' 1072s # Testing fopen() mode 'a+' 1072s # Testing fopen() mode 'wb' 1072s # Testing fopen() mode 'rb' 1072s # Testing fopen() mode 'ab' 1072s # Testing fopen() mode 'w+b' 1072s # Testing fopen() mode 'r+b' 1072s # Testing fopen() mode 'a+b' 1072s # Testing fopen() mode 'wb+' 1072s # Testing fopen() mode 'rb+' 1072s # Testing fopen() mode 'ab+' 1072s ok 24 /fileutils/fopen-modes 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/clear-fd/.dirs/runtime 1072s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1072s # Will be closed by autocleanup: 3, -42 1072s # Testing error handling 1072s ok 25 /fileutils/clear-fd 1072s # Start of set-contents-full tests 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-file/.dirs/runtime 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1072s ok 26 /fileutils/set-contents-full/read-only-file 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0KV652/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1072s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1072s # Flags 0 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 1 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 2 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 3 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 4 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 5 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s # Flags 6 1072s # We do not have CAP_DAC_OVERRIDE or equivalent 1072s ok 27 /fileutils/set-contents-full/read-only-directory 1072s # End of set-contents-full tests 1072s # Start of clear-fd tests 1072s # Start of subprocess tests 1072s # End of subprocess tests 1072s # End of clear-fd tests 1072s # End of fileutils tests 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-85XW52: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-I6YW52: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-ZNY052: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-J6W052: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-RP1052: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-L9Z052: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652/glib-file-set-contents-full-rodir-TLQ052: Directory not empty 1072s Unable to clean up temporary directory /tmp/test_fileutils_0KV652: Directory not empty 1072s ok - glib/fileutils.test 1072s TAP version 14 1072s # random seed: R02Scf6ffad0710cf108acbd733b18a19a38 1072s 1..2 1072s # Start of gobject tests 1072s ok 1 /gobject/dynamic-type 1072s # Start of dynamic-type tests 1072s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1072s ok 2 /gobject/dynamic-type/query 1072s # End of dynamic-type tests 1072s # End of gobject tests 1072s # Running test: glib/dynamictype.test 1072s ok - glib/dynamictype.test 1072s # Running test: glib/relation.test 1072s TAP version 14 1072s # random seed: R02S5e603239f08799f7ec9d226a3659dcea 1072s 1..1 1072s # Start of glib tests 1072s ok 1 /glib/relation 1072s # End of glib tests 1072s ok - glib/relation.test 1072s # Running test: glib/memory-monitor-portal.test 1072s TAP version 13 1072s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1072s 1..1 1072s ok - glib/memory-monitor-portal.test 1072s # Running test: glib/charset.test 1072s TAP version 14 1072s # random seed: R02S28f179732598e4563aeff4390ed6e224 1072s 1..2 1072s # Start of charset tests 1072s # Test 0 1072s # Test 1 1072s # Test 2 1072s # Test 3 1072s ok 1 /charset/language_names_with_category 1072s ok - glib/charset.test 1072s ok 2 /charset/language_names_with_category_async 1072s # End of charset tests 1072s # Running test: glib/utils.test 1072s TAP version 14 1072s # random seed: R02Sb7a3725da2132eca1bf61efefe1eb12c 1072s 1..41 1072s # Start of utils tests 1072s ok 1 /utils/language-names 1072s ok 2 /utils/locale-variants 1072s ok 3 /utils/version 1072s ok 4 /utils/appname 1072s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1072s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1072s ok 5 /utils/prgname-thread-safety 1072s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1072s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1072s ok 6 /utils/tmpdir 1072s ok 7 /utils/basic_bits 1072s ok 8 /utils/bits 1072s ok 9 /utils/swap 1072s ok 10 /utils/find-program 1072s ok 11 /utils/find-program-for-path 1072s ok 12 /utils/debug 1072s ok 13 /utils/codeset 1072s ok 14 /utils/codeset2 1072s ok 15 /utils/console-charset 1072s ok 16 /utils/gettext 1072s ok 17 /utils/username 1072s ok 18 /utils/realname 1072s ok 19 /utils/hostname 1072s ok 20 /utils/xdgdirs 1072s ok 21 /utils/specialdir 1072s # NAME: Ubuntu 1072s ok 22 /utils/os-info 1072s ok 23 /utils/clear-pointer 1072s ok 24 /utils/clear-pointer-cast 1072s ok 25 /utils/take-pointer 1072s ok 26 /utils/clear-source 1072s ok 27 /utils/misc-mem 1072s # /utils/aligned-mem summary: Aligned memory allocator 1072s # Alignment must not be zero 1072s # Alignment must be a power of two 1072s # Alignment must be a multiple of sizeof(void*) 1072s ok 28 /utils/aligned-mem 1072s # /utils/free-sized summary: Check that g_free_sized() works 1072s ok 29 /utils/free-sized 1072s ok 30 /utils/nullify 1072s ok 31 /utils/atexit 1072s ok 32 /utils/check-setuid 1072s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1072s ok 33 /utils/int-limits 1072s ok 34 /utils/clear-list 1072s ok 35 /utils/clear-slist 1072s ok 36 /utils/steal-handle-id 1072s # Start of specialdir tests 1072s ok 37 /utils/specialdir/desktop 1072s # End of specialdir tests 1072s # Start of clear-pointer tests 1072s ok 38 /utils/clear-pointer/side-effects 1072s # End of clear-pointer tests 1072s # Start of aligned-mem tests 1072s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1072s ok 39 /utils/aligned-mem/alignment 1072s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1072s ok 40 /utils/aligned-mem/zeroed 1072s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1072s ok 41 /utils/aligned-mem/free-sized 1072s # Start of subprocess tests 1072s # End of subprocess tests 1072s # End of aligned-mem tests 1072s # End of utils tests 1072s ok - glib/utils.test 1072s # Running test: glib/gdbus-auth.test 1072s TAP version 14 1072s # random seed: R02Sade8375cc51498dbbdc80cf1afe0466e 1072s 1..5 1072s # Start of gdbus tests 1072s # Start of auth tests 1072s # Start of client tests 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/EXTERNAL/.dirs/runtime 1072s ok 1 /gdbus/auth/client/EXTERNAL 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_R87752/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1072s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1072s # End of client tests 1072s # Start of server tests 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1072s ok 3 /gdbus/auth/server/ANONYMOUS 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/EXTERNAL/.dirs/runtime 1072s ok 4 /gdbus/auth/server/EXTERNAL 1072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_R87752/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1072s ok - glib/gdbus-auth.test 1072s # Running test: glib/closure-refcount.test 1072s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1072s # End of server tests 1072s # End of auth tests 1072s # End of gdbus tests 1072s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1072s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1072s TAP version 14 1072s # random seed: R02S25fd53db33dba76e4b51ef5330ab1e65 1072s 1..1 1072s # Start of closure tests 1072s # Init 0x36bb350 1072s # Yielding from thread1 1072s # Yielding from thread2 1073s # Yielding from thread1 1073s # Yielding from thread2 1073s # Yielding from main thread 1073s # Yielding from thread1 1073s # Yielding from thread2 1073s # Yielding from thread1 1073s # Yielding from thread2 1073s # Yielding from thread1 1073s # Yielding from thread2 1073s # Yielding from thread1 1073s # Yielding from thread2 1073s # Yielding from thread2 1073s # Yielding from thread1 1074s # Yielding from thread2 1074s # Yielding from main thread 1074s # Yielding from thread1 1074s # Yielding from thread2 1074s # Yielding from thread1 1074s # Yielding from thread2 1074s # Yielding from thread2 1074s # Yielding from thread1 1074s # Yielding from thread2 1074s # Yielding from thread1 1074s # Yielding from thread2 1074s # Executing: glib/closure-refcount.test 1075s # Yielding from thread2 1075s # Yielding from main thread 1075s # Yielding from thread1 1075s # Yielding from thread2 1075s # Yielding from thread2 1075s # Yielding from thread1 1075s # Yielding from thread2 1075s # Yielding from thread1 1075s # Yielding from thread2 1075s # Yielding from thread2 1075s # Yielding from thread1 1075s # Yielding from main thread 1075s # Yielding from thread2 1076s # Yielding from thread2 1076s # Yielding from thread1 1076s # Yielding from thread2 1076s # Yielding from thread2 1076s # Yielding from thread1 1076s # Yielding from thread2 1076s # Yielding from thread1 1076s # Yielding from thread2 1076s # Yielding from main thread 1076s # Yielding from thread2 1076s # Yielding from thread1 1076s # Yielding from thread2 1077s # Yielding from thread2 1077s # Yielding from thread1 1077s # Yielding from thread2 1077s # Yielding from thread1 1077s # Yielding from thread2 1077s # Yielding from thread2 1077s # Yielding from thread1 1077s # Yielding from main thread 1077s # Yielding from thread2 1077s # Yielding from thread1 1077s # Yielding from thread2 1077s # Yielding from thread2 1077s # Yielding from thread1 1078s # Yielding from thread2 1078s # Yielding from thread1 1078s # Yielding from thread2 1078s # Yielding from thread2 1078s # Yielding from main thread 1078s # Yielding from thread1 1078s # Yielding from thread2 1078s # Yielding from thread2 1078s # Yielding from thread1 1078s # Yielding from thread2 1078s # Yielding from thread1 1078s # Yielding from thread2 1079s # Yielding from thread2 1079s # Yielding from thread1 1079s # Yielding from thread2 1079s # Yielding from main thread 1079s # Yielding from thread1 1079s # Yielding from thread2 1079s # Yielding from thread2 1079s # Yielding from thread1 1079s # Yielding from thread2 1079s # Yielding from thread1 1079s # Executing: glib/closure-refcount.test 1079s # Yielding from thread2 1079s # Yielding from main thread 1080s # Yielding from thread1 1080s # Yielding from thread2 1080s # Yielding from thread1 1080s # Yielding from thread2 1080s # Yielding from thread1 1080s # Yielding from thread2 1080s # Stopping 1080s # Stopped 1080s ok 1 /closure/refcount 1080s # slow test /closure/refcount executed in 7.81 secs 1080s # End of closure tests 1080s ok - glib/closure-refcount.test 1080s # Running test: glib/module-test-plugin.test 1080s TAP version 14 1080s # random seed: R02S1a1ac05dff6f3a3b97c5105c6d987afd 1080s 1..3 1080s # Start of module tests 1080s ok 1 /module/basics 1080s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1080s ok 2 /module/invalid-libtool-archive 1080s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1080s ok 3 /module/local-binding 1080s # End of module tests 1080s ok - glib/module-test-plugin.test 1080s # Running test: glib/signals-refcount2.test 1080s TAP version 14 1080s # random seed: R02Sef82a0709ce7acdf7c6a853bac7ab144 1080s 1..1 1080s # Start of gobject tests 1080s # Start of refcount tests 1080s # init 0x56e0978 1080s # 1080s # init 0x56e8a38 1080s # 1084s # Executing: glib/signals-refcount2.test 1085s # dispose 0x56e0978! 1085s # 1085s # dispose 0x56e8a38! 1085s # 1085s ok 1 /gobject/refcount/signals 1085s # slow test /gobject/refcount/signals executed in 5.00 secs 1085s # End of refcount tests 1085s # End of gobject tests 1085s ok - glib/signals-refcount2.test 1085s # Running test: glib/contenttype.test 1085s TAP version 14 1085s # random seed: R02Seeb2fe18da1214d539734a9258978f0f 1085s 1..14 1085s # Start of contenttype tests 1085s ok 1 /contenttype/guess 1085s ok 2 /contenttype/guess_svg_from_data 1085s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1085s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1085s ok 5 /contenttype/unknown 1085s ok 6 /contenttype/subtype 1085s ok 7 /contenttype/list 1085s ok 8 /contenttype/executable 1085s ok 9 /contenttype/description 1085s ok 10 /contenttype/icon 1085s ok 11 /contenttype/symbolic-icon 1085s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1085s ok - glib/contenttype.test 1085s # Running test: glib/autoptr-gio.test 1085s ok - glib/autoptr-gio.test 1085s # Running test: glib/gdbus-connection-slow.test 1085s ok 12 /contenttype/tree 1085s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1085s ok 13 /contenttype/tree_invalid_encoding 1085s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1085s ok 14 /contenttype/test_type_is_a_special_case 1085s # End of contenttype tests 1085s TAP version 14 1085s # random seed: R02Seda1e17da16a11fef8c65bf2ba037b34 1085s 1..1 1085s # Start of autoptr tests 1085s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1085s ok 1 /autoptr/autoptr 1085s # End of autoptr tests 1085s TAP version 14 1085s # random seed: R02S855ab25564d2b18e3eb1a6dc8f5e3e80 1085s 1..2 1085s # Start of gdbus tests 1085s # Start of connection tests 1085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/home 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/cache 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/system-config2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/config 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/system-data2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/data 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/state 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/flush/.dirs/runtime 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s ok 1 /gdbus/connection/flush 1085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/home 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/cache 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/system-config2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/config 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/system-data2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/data 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/state 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_5EA952/gdbus/connection/large_message/.dirs/runtime 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1086s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1086s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1086s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1086s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1086s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1086s ok 2 /gdbus/connection/large_message 1086s # End of connection tests 1086s # End of gdbus tests 1086s ok - glib/gdbus-connection-slow.test 1086s # Running test: glib/performance.test 1089s # Executing: glib/performance.test 1094s # Executing: glib/performance.test 1095s simple-construction: Millions of constructed objects per second: 12.241 1098s simple-construction1: Millions of constructed objects per second: 70.519 1099s # Executing: glib/performance.test 1103s complex-construction: Millions of constructed objects per second: 4.755 1104s # Executing: glib/performance.test 1109s complex-construction1: Millions of constructed objects per second: 7.915 1109s # Executing: glib/performance.test 1114s # Executing: glib/performance.test 1116s complex-construction2: Millions of constructed objects per second: 8.752 1118s finalization: Millions of finalized objects per second: 1.742 1119s type-check: Million type checks per second: 39.67 1119s # Executing: glib/performance.test 1120s emit-unhandled: Emissions per second: 2694900 1122s emit-unhandled-empty: Emissions per second: 24309596 1123s emit-unhandled-generic: Emissions per second: 3671228 1124s emit-unhandled-generic-empty: Emissions per second: 24438750 1124s # Executing: glib/performance.test 1125s emit-unhandled-args: Emissions per second: 2396420 1127s emit-handled: Emissions per second: 1803944 1128s emit-handled-empty: Emissions per second: 1841260 1129s emit-handled-generic: Emissions per second: 1877479 1129s # Executing: glib/performance.test 1130s emit-handled-generic-empty: Emissions per second: 2987337 1132s emit-handled-args: Emissions per second: 1631718 1133s notify-unhandled: Notify (unhandled) per second: 10388311 1134s notify-by-pspec-unhandled: Notify (unhandled) per second: 74569593 1134s # Executing: glib/performance.test 1135s notify-handled: Notify per second: 1076711 1137s notify-by-pspec-handled: Notify per second: 1184151 1138s property-set: Property set per second: 9937492 1139s property-set-signaled: Property set per second: 2016797 1139s # Executing: glib/performance.test 1140s property-get: Property get per second: 10786487 1142s refcount: Million refs+unref per second: 16.97 1143s refcount-1: Million refs+unref per second: 41.40 1144s refcount-toggle: Million refs+unref per second: 24.91 1144s ok - glib/performance.test 1144s # Running test: glib/enums.test 1144s TAP version 14 1144s # random seed: R02S8192ef4ed4bb3dc91395b790ada61a20 1144s 1..4 1144s # Start of enum tests 1144s ok 1 /enum/basic 1144s ok 2 /enum/define-type 1144s # End of enum tests 1144s # Start of flags tests 1144s ok 3 /flags/basic 1144s ok 4 /flags/define-type 1144s # End of flags tests 1144s ok - glib/enums.test 1144s # Running test: glib/overflow-fallback.test 1144s ok - glib/overflow-fallback.test 1144s TAP version 14 1144s # random seed: R02S76ca2d975a6d4f01e18e86119a522926 1144s 1..6 1144s # Start of glib tests 1144s # Start of checked-math tests 1144s ok 1 /glib/checked-math/guint-add 1144s ok 2 /glib/checked-math/guint-mul 1144s ok 3 /glib/checked-math/guint64-add 1144s ok 4 /glib/checked-math/guint64-mul 1144s ok 5 /glib/checked-math/gsize-add 1144s ok 6 /glib/checked-math/gsize-mul 1144s # End of checked-math tests 1144s # End of glib tests 1144s # Running test: glib/permission.test 1144s TAP version 14 1144s # random seed: R02See29b9f46238066f17cf67484bc9e01c 1144s 1..1 1144s # Start of permission tests 1144s ok 1 /permission/simple 1144s # End of permission tests 1144s ok - glib/permission.test 1144s # Running test: glib/gdbus-connection-flush.test 1144s TAP version 14 1144s # random seed: R02S80f5a05a9cf22c240a33f806f0fa1f06 1144s 1..2 1144s # Start of gdbus tests 1144s # Start of connection tests 1144s # Start of flush tests 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/busy/.dirs/runtime 1144s ok 1 /gdbus/connection/flush/busy 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_XYIB62/gdbus/connection/flush/idle/.dirs/runtime 1144s ok 2 /gdbus/connection/flush/idle 1144s # End of flush tests 1144s # End of connection tests 1144s # End of gdbus tests 1144s ok - glib/gdbus-connection-flush.test 1144s # Running test: glib/application-command-line.test 1144s TAP version 14 1144s # random seed: R02Sf092c8050879ce50807e882ab557cad3 1144s 1..1 1144s # Start of application-command-line tests 1144s ok 1 /application-command-line/basic-properties 1144s # End of application-command-line tests 1144s ok - glib/application-command-line.test 1144s # Running test: glib/signals-refcount3.test 1144s TAP version 14 1144s # random seed: R02S2c04b0c4116ba64ecf0677b2d5612198 1144s 1..1 1144s # Start of gobject tests 1144s # Start of refcount tests 1144s # init 0x538a978 1144s # 1144s # init 0x5392a38 1144s # 1144s # Executing: glib/signals-refcount3.test 1149s # dispose 0x538a978! 1149s # 1149s # dispose 0x5392a38! 1149s # 1149s ok 1 /gobject/refcount/signals 1149s # slow test /gobject/refcount/signals executed in 5.00 secs 1149s # End of refcount tests 1149s # End of gobject tests 1149s ok - glib/signals-refcount3.test 1149s # Running test: glib/gdbus-introspection.test 1149s TAP version 14 1149s # random seed: R02S9d6ccb9ea5cde524afd1205bf1c77120 1149s 1..4 1149s # Start of gdbus tests 1149s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/home 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/cache 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/system-config2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/config 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/system-data2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/data 1149s ok - glib/gdbus-introspection.test 1149s # Running test: glib/642026.test 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/state 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-parser/.dirs/runtime 1149s ok 1 /gdbus/introspection-parser 1149s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/home 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/cache 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/system-config2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/config 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/system-data2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/data 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/state 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-generate/.dirs/runtime 1149s ok 2 /gdbus/introspection-generate 1149s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/home 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/cache 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/system-config2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/config 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/system-data2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/data 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/state 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-default-direction/.dirs/runtime 1149s ok 3 /gdbus/introspection-default-direction 1149s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/home 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/cache 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/system-config2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/config 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/system-data2 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/data 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/state 1149s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_3F6252/gdbus/introspection-extra-data/.dirs/runtime 1149s ok 4 /gdbus/introspection-extra-data 1149s # End of gdbus tests 1149s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1149s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1149s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1149s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1149s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1149s cleaning up pid 2424 1149s TAP version 14 1149s # random seed: R02S5563b34bdb61b95660af589cf7cd4676 1149s 1..1 1149s # Start of glib tests 1149s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1149s # Executing: glib/642026.test 1150s ok - glib/642026.test 1150s ok 1 /glib/642026 1150s # End of glib tests 1150s # Running test: glib/callable-info.test 1150s TAP version 14 1150s # random seed: R02Sf2c3cb14d3e1e82e783cdfaa8293750b 1150s 1..5 1150s # Start of callable-info tests 1150s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/home 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/cache 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/system-config2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/config 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/system-data2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/data 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/state 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_OZ5452/callable-info/sync-function/.dirs/runtime 1150s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1150s ok 1 /callable-info/sync-function 1150s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/home 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/cache 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/system-config2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/config 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/system-data2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/data 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/state 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_OZ5452/callable-info/async-function/.dirs/runtime 1150s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1150s ok 2 /callable-info/async-function 1150s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/home 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/cache 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/system-config2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/config 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/system-data2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/data 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/state 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_OZ5452/callable-info/is-method/.dirs/runtime 1150s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1150s ok 3 /callable-info/is-method 1150s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/home 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/cache 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/system-config2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/config 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/system-data2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/data 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/state 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_OZ5452/callable-info/static-method/.dirs/runtime 1150s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1150s ok 4 /callable-info/static-method 1150s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/home 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/cache 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/system-config2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/config 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/system-data2 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/data 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/state 1150s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_OZ5452/callable-info/static-vfunc/.dirs/runtime 1150s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1150s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1150s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1150s # End of callable-info tests 1150s ok - glib/callable-info.test 1150s # Running test: glib/module-test-library.test 1150s TAP version 14 1150s # random seed: R02S9ec2f0bfddb3678d5f7716cd9091c74f 1150s 1..3 1150s # Start of module tests 1150s ok 1 /module/basics 1150s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1150s ok 2 /module/invalid-libtool-archive 1150s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1150s ok 3 /module/local-binding 1150s # End of module tests 1150s ok - glib/module-test-library.test 1150s # Running test: glib/markup-escape.test 1150s ok - glib/markup-escape.test 1150s # Running test: glib/rcbox.test 1150s ok - glib/rcbox.test 1150s TAP version 14 1150s # random seed: R02S30717b3db80d75da28bff3391dac902e 1150s 1..41 1150s # Start of markup tests 1150s ok 1 /markup/format 1150s # Start of escape-text tests 1150s ok 2 /markup/escape-text/0 1150s ok 3 /markup/escape-text/1 1150s ok 4 /markup/escape-text/2 1150s ok 5 /markup/escape-text/3 1150s ok 6 /markup/escape-text/4 1150s ok 7 /markup/escape-text/5 1150s ok 8 /markup/escape-text/6 1150s ok 9 /markup/escape-text/7 1150s ok 10 /markup/escape-text/8 1150s ok 11 /markup/escape-text/9 1150s ok 12 /markup/escape-text/10 1150s ok 13 /markup/escape-text/11 1150s ok 14 /markup/escape-text/12 1150s ok 15 /markup/escape-text/13 1150s ok 16 /markup/escape-text/14 1150s ok 17 /markup/escape-text/15 1150s ok 18 /markup/escape-text/16 1150s ok 19 /markup/escape-text/17 1150s ok 20 /markup/escape-text/18 1150s ok 21 /markup/escape-text/19 1150s ok 22 /markup/escape-text/20 1150s ok 23 /markup/escape-text/21 1150s ok 24 /markup/escape-text/22 1150s # End of escape-text tests 1150s # Start of escape-unichar tests 1150s ok 25 /markup/escape-unichar/0 1150s ok 26 /markup/escape-unichar/1 1150s ok 27 /markup/escape-unichar/2 1150s ok 28 /markup/escape-unichar/3 1150s ok 29 /markup/escape-unichar/4 1150s ok 30 /markup/escape-unichar/5 1150s ok 31 /markup/escape-unichar/6 1150s ok 32 /markup/escape-unichar/7 1150s ok 33 /markup/escape-unichar/8 1150s ok 34 /markup/escape-unichar/9 1150s ok 35 /markup/escape-unichar/10 1150s ok 36 /markup/escape-unichar/11 1150s ok 37 /markup/escape-unichar/12 1150s ok 38 /markup/escape-unichar/13 1150s ok 39 /markup/escape-unichar/14 1150s ok 40 /markup/escape-unichar/15 1150s ok 41 /markup/escape-unichar/16 1150s # End of escape-unichar tests 1150s # End of markup tests 1150s # Running test: glib/converter-stream.test 1150s TAP version 14 1150s # random seed: R02S1a9398898bbe75fe10b652499db4b6a4 1150s 1..8 1150s # Start of rcbox tests 1150s ok 1 /rcbox/new 1150s # global_point = 0x1920000 1150s ok 2 /rcbox/release-full 1150s # global_point_a = 0x1920000 1150s # global_point_b = 0x1918188 1150s ok 3 /rcbox/dup 1150s ok 4 /rcbox/alignment 1150s # End of rcbox tests 1150s # Start of atomic-rcbox tests 1150s ok 5 /atomic-rcbox/new 1150s # global_point = 0x1918188 1150s ok 6 /atomic-rcbox/release-full 1150s # global_point_a = 0x1918188 1150s # global_point_b = 0x1920000 1150s ok 7 /atomic-rcbox/dup 1150s ok 8 /atomic-rcbox/alignment 1150s # End of atomic-rcbox tests 1150s TAP version 14 1150s # random seed: R02Sd8299229c5fc2d9cae99921b52d76d52 1150s 1..17 1150s # Start of converter tests 1150s ok 1 /converter/basics 1150s # End of converter tests 1150s # Start of converter-input-stream tests 1150s ok 2 /converter-input-stream/expander 1150s ok 3 /converter-input-stream/compressor 1150s # Start of truncation tests 1150s ok 4 /converter-input-stream/truncation/zlib 1150s ok 5 /converter-input-stream/truncation/gzip 1150s ok 6 /converter-input-stream/truncation/raw 1150s # End of truncation tests 1150s # Start of charset tests 1150s ok 7 /converter-input-stream/charset/utf8->latin1 1150s ok 8 /converter-input-stream/charset/latin1->utf8 1150s ok 9 /converter-input-stream/charset/fallbacks 1150s # End of charset tests 1150s # End of converter-input-stream tests 1150s # Start of converter-output-stream tests 1150s # Start of roundtrip tests 1150s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1150s ok 10 /converter-output-stream/roundtrip/zlib-0 1150s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1150s ok 11 /converter-output-stream/roundtrip/zlib-9 1150s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1150s ok 12 /converter-output-stream/roundtrip/gzip-0 1150s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1150s ok 13 /converter-output-stream/roundtrip/gzip-9 1150s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1151s ok 14 /converter-output-stream/roundtrip/raw-0 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1151s ok 15 /converter-output-stream/roundtrip/raw-9 1151s # End of roundtrip tests 1151s # End of converter-output-stream tests 1151s # Start of converter-stream tests 1151s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1151s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2211768 and GSocketClientAsyncConnectData 0x2214240 1151s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1151s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1151s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x221c630 for GSocketClientAsyncConnectData 0x2214240 1151s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1151s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1151s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1151s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1151s ok 16 /converter-stream/pollable 1151s ok 17 /converter-stream/leftover 1151s # End of converter-stream tests 1151s TAP version 14 1151s # random seed: R02S2a7388e6ece742a8a317e3dd001d055d 1151s 1..14 1151s # Start of quark tests 1151s ok 1 /quark/basic 1151s ok 2 /quark/string 1151s # End of quark tests 1151s # Start of dataset tests 1151s ok 3 /dataset/basic 1151s ok 4 /dataset/id 1151s ok 5 /dataset/full 1151s ok 6 /dataset/foreach 1151s ok 7 /dataset/destroy 1151s # End of dataset tests 1151s # Start of datalist tests 1151s ok 8 /datalist/basic 1151s ok 9 /datalist/id 1151s ok 10 /datalist/recursive-clear 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1151s ok 11 /datalist/id-remove-multiple 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1151s ok 12 /datalist/id-remove-multiple-destroy-order 1151s ok 13 /datalist/update-atomic 1151s # Start of id-remove-multiple tests 1151s ok - glib/converter-stream.test 1151s # Running test: glib/dataset.test 1151s ok 14 /datalist/id-remove-multiple/resize 1151s # End of id-remove-multiple tests 1151s # End of datalist tests 1151s ok - glib/dataset.test 1151s # Running test: glib/references.test 1151s TAP version 14 1151s # random seed: R02S65d619ab85abb558e8d230293175cb93 1151s 1..1 1151s # Start of gobject tests 1151s ok 1 /gobject/references 1151s # End of gobject tests 1151s ok - glib/references.test 1151s # Running test: glib/repository-search-paths.test 1151s TAP version 14 1151s ok - glib/repository-search-paths.test 1151s # Running test: glib/network-monitor-race.test 1151s # random seed: R02S2c567379f22029f5ab8f766c95e28147 1151s 1..4 1151s # Start of repository tests 1151s # Start of search-paths tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/default/.dirs/runtime 1151s ok 1 /repository/search-paths/default 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_V5LZ52/repository/search-paths/prepend/.dirs/runtime 1151s ok 2 /repository/search-paths/prepend 1151s # End of search-paths tests 1151s # Start of library-paths tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/default/.dirs/runtime 1151s ok 3 /repository/library-paths/default 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_V5LZ52/repository/library-paths/prepend/.dirs/runtime 1151s ok 4 /repository/library-paths/prepend 1151s # End of library-paths tests 1151s # End of repository tests 1151s TAP version 14 1151s # random seed: R02Sd633c92d717332016f57e3d2daef2150 1151s 1..1 1151s # Start of network-monitor tests 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1153s ok 1 /network-monitor/create-in-thread 1153s # slow test /network-monitor/create-in-thread executed in 2.20 secs 1153s # End of network-monitor tests 1153s TAP version 14 1153s # random seed: R02S3914bd5d99ec07f2f0dc184382a8c436 1153s 1..1 1153s # Start of gobject tests 1153s # Start of refcount tests 1153s ok 1 /gobject/refcount/properties-4 1153s # End of refcount tests 1153s # End of gobject tests 1153s ok - glib/network-monitor-race.test 1153s # Running test: glib/properties-refcount4.test 1153s TAP version 14 1153s # random seed: R02Sf6ffaa4d3b9e27d965cf142a1b33f9b7 1153s 1..1 1153s # Start of png-thumbs tests 1153s ok 1 /png-thumbs/validity 1153s # End of png-thumbs tests 1153s ok - glib/properties-refcount4.test 1153s # Running test: glib/thumbnail-verification.test 1153s ok - glib/thumbnail-verification.test 1153s # Running test: glib/async-splice-output-stream.test 1153s TAP version 14 1153s # random seed: R02S073e72e74fda910af5ac48890d2b35c9 1153s 1..5 1153s # Start of async-splice tests 1153s ok 1 /async-splice/copy-chunks 1153s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1153s ok 2 /async-splice/copy-chunks-threaded-input 1153s ok 3 /async-splice/copy-chunks-threaded-output 1153s ok 4 /async-splice/copy-chunks-threaded 1153s ok - glib/async-splice-output-stream.test 1153s # Running test: glib/refstring.test 1153s ok 5 /async-splice/cancelled 1153s # End of async-splice tests 1153s TAP version 14 1153s # random seed: R02S8d383b4d7aa4a68a83cd983884066778 1153s 1..8 1153s # Start of refstring tests 1153s # s = 'hello, world' (0x5ec6fd0) 1153s ok 1 /refstring/base 1153s ok 2 /refstring/length 1153s ok 3 /refstring/length-auto 1153s ok 4 /refstring/length-nuls 1153s # s = 'hello, world' (0x5ebf0f8) 1153s # p = s = 'hello, world' (0x5ebf0f8) 1153s # releasing p[0x5ebf0f8] ('hello, world') 1153s # p = 'goodbye, world' (0x5ebf1c8) 1153s # releasing p[0x5ebf1c8] ('goodbye, world') 1153s # releasing s[0x5ebf0f8] ('hello, world') 1153s ok 5 /refstring/intern 1153s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1153s ok 6 /refstring/hash_equal 1153s # /refstring/equal summary: Test g_ref_string_equal() standalone 1153s ok 7 /refstring/equal 1154s ok 8 /refstring/intern-thread-safety 1154s # slow test /refstring/intern-thread-safety executed in 0.91 secs 1154s # End of refstring tests 1154s ok - glib/refstring.test 1154s # Running test: glib/unicode-normalize.test 1154s TAP version 14 1154s # random seed: R02S2f339680f2fb5b27865099eb3c2060d4 1154s 1..3 1154s # Start of unicode tests 1154s # Processing Part0 # Specific cases 1154s # Processing Part1 # Character by character test 1154s # Processing Part2 # Canonical Order Test 1154s # Processing Part3 # PRI #29 Test 1154s # Processing Part4 # Canonical closures (excluding Hangul) 1154s # Processing Part5 # Chained primary composites 1154s ok 1 /unicode/normalize 1154s # Invalid UTF-8 vector 0 1154s # Invalid UTF-8 vector 1 1154s # Invalid UTF-8 vector 2 1154s # Invalid UTF-8 vector 3 1154s # Invalid UTF-8 vector 4 1154s # Invalid UTF-8 vector 5 1154s # Invalid UTF-8 vector 6 1154s # Invalid UTF-8 vector 7 1154s # Invalid UTF-8 vector 8 1154s # Invalid UTF-8 vector 9 1154s # Invalid UTF-8 vector 10 1154s # Invalid UTF-8 vector 11 1154s # Invalid UTF-8 vector 12 1154s ok 2 /unicode/normalize-invalid 1154s # Start of normalize tests 1154s ok 3 /unicode/normalize/bad-length 1154s # End of normalize tests 1154s # End of unicode tests 1154s ok - glib/unicode-normalize.test 1154s # Running test: glib/override.test 1154s TAP version 14 1154s # random seed: R02S8d48de15734bd54c7db3a8e975425a2d 1154s 1..1 1154s # Start of gobject tests 1154s # *** emitting foo on a TestA instance 1154s # Expecting: TestA::foo,TestI::foo 1154s # Got: TestA::foo,TestI::foo 1154s # *** emitting bar on a TestA instance 1154s # Expecting: TestA::bar 1154s # Got: TestA::bar 1154s # *** emitting baz on a TestA instance 1154s # Expecting: TestA::baz 1154s # Got: TestA::baz 1154s # *** emitting foo on a TestB instance 1154s # Expecting: TestB::foo,TestA::foo,TestI::foo 1154s # Got: TestB::foo,TestA::foo,TestI::foo 1154s # *** emitting bar on a TestB instance 1154s # Expecting: TestB::bar,TestA::bar 1154s # Got: TestB::bar,TestA::bar 1154s # *** emitting baz on a TestB instance 1154s # Expecting: TestB::baz,TestA::baz 1154s # Got: TestB::baz,TestA::baz 1154s # *** emitting foo on a TestC instance 1154s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1154s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1154s # *** emitting bar on a TestC instance 1154s # Expecting: TestC::bar,TestB::bar,TestA::bar 1154s # Got: TestC::bar,TestB::bar,TestA::bar 1154s # *** emitting baz on a TestC instance 1154s # Expecting: TestC::baz,TestB::baz,TestA::baz 1154s # Got: TestC::baz,TestB::baz,TestA::baz 1154s ok 1 /gobject/override 1154s # End of gobject tests 1154s ok - glib/override.test 1154s # Running test: glib/gio-tool.py.test 1154s TAP version 13 1154s ok 1 __main__.TestGioTool.test_help 1154s # gio: /usr/bin/gio 1154s # tmpdir: /tmp/tmplprxl5r2 1154s # Running: ['/usr/bin/gio', '--help'] 1154s # Return code: 0 1154s # Output: 1154s # Usage: 1154s # gio COMMAND [ARGS…] 1154s # 1154s # Commands: 1154s # help Print help 1154s # version Print version 1154s # cat Concatenate files to standard output 1154s # copy Copy one or more files 1154s # info Show information about locations 1154s # launch Launch an application from a desktop file 1154s # list List the contents of locations 1154s # mime Get or set the handler for a mimetype 1154s # mkdir Create directories 1154s # monitor Monitor files and directories for changes 1154s # mount Mount or unmount the locations 1154s # move Move one or more files 1154s # open Open files with the default application 1154s # rename Rename a file 1154s # remove Delete one or more files 1154s # save Read from standard input and save 1154s # set Set a file attribute 1154s # trash Move files or directories to the trash 1154s # tree Lists the contents of locations in a tree 1154s # 1154s # Use “gio help COMMAND†to get detailed help. 1154s # Error: 1154s # 1154s # Running: ['/usr/bin/gio', 'help'] 1154s # Return code: 0 1154s # Output: 1154s # Usage: 1154s # gio COMMAND [ARGS…] 1154s # 1154s # Commands: 1154s # help Print help 1154s # version Print version 1154s # cat Concatenate files to standard output 1154s # copy Copy one or more files 1154s # info Show information about locations 1154s # launch Launch an application from a desktop file 1154s # list List the contents of locations 1154s # mime Get or set the handler for a mimetype 1154s # mkdir Create directories 1154s # monitor Monitor files and directories for changes 1154s # mount Mount or unmount the locations 1154s # move Move one or more files 1154s # open Open files with the default application 1154s # rename Rename a file 1154s # remove Delete one or more files 1154s # save Read from standard input and save 1154s # set Set a file attribute 1154s # trash Move files or directories to the trash 1154s # tree Lists the contents of locations in a tree 1154s # 1154s # Use “gio help COMMAND†to get detailed help. 1154s # Error: 1154s ok 2 __main__.TestGioTool.test_info_non_default_attributes 1154s # gio: /usr/bin/gio 1154s # tmpdir: /tmp/tmp_78aa1s2 1154s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmp_78aa1s2/tmpge9prwey'] 1154s # Return code: 0 1154s # Output: 1154s # uri: file:///tmp/tmp_78aa1s2/tmpge9prwey 1154s # local path: /tmp/tmp_78aa1s2/tmpge9prwey 1154s # unix mount: /dev/vda2[/lxd/containers/autopkgtest-lxd-xqclas/rootfs] / btrfs rw,relatime,idmapped,discard=async,space_cache=v2,user_subvol_rm_allowed,subvolid=3963,subvol=/lxd/containers/autopkgtest-lxd-xqclas 1154s # attributes: 1154s # standard::content-type: application/x-zerosize 1154s # Error: 1154s ok 3 __main__.TestGioTool.test_no_args 1154s # gio: /usr/bin/gio 1154s # tmpdir: /tmp/tmps4t_5zyu 1154s # Running: ['/usr/bin/gio'] 1154s # Return code: 1 1154s # Output: 1154s # 1154s # Error: 1154s # Usage: 1154s # gio COMMAND [ARGS…] 1154s # 1154s # Commands: 1154s # help Print help 1154s # version Print version 1154s # cat Concatenate files to standard output 1154s # copy Copy one or more files 1154s # info Show information about locations 1154s # launch Launch an application from a desktop file 1154s # list List the contents of locations 1154s # mime Get or set the handler for a mimetype 1154s # mkdir Create directories 1154s # monitor Monitor files and directories for changes 1154s # mount Mount or unmount the locations 1154s # move Move one or more files 1154s # open Open files with the default application 1154s # rename Rename a file 1154s # remove Delete one or more files 1154s # save Read from standard input and save 1154s # set Set a file attribute 1154s # trash Move files or directories to the trash 1154s # tree Lists the contents of locations in a tree 1154s # 1154s # Use “gio help COMMAND†to get detailed help. 1154s 1..3 1154s ok - glib/gio-tool.py.test 1154s # Running test: glib/struct-info.test 1154s TAP version 14 1154s # random seed: R02Sa88c118c75ddee5d629b7e8cbcc466e6 1154s 1..4 1154s # Start of struct-info tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AFK852/struct-info/field-iterators/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1154s ok 1 /struct-info/field-iterators 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AFK852/struct-info/sizeof-gvalue/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1154s ok 2 /struct-info/sizeof-gvalue 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AFK852/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s ok - glib/struct-info.test 1154s # Running test: glib/volumemonitor.test 1154s ok - glib/volumemonitor.test 1154s # Running test: glib/macros-c-17.test 1154s ok - glib/macros-c-17.test 1154s # Running test: glib/buffered-input-stream.test 1154s ok - glib/buffered-input-stream.test 1154s # Running test: glib/inet-address.test 1154s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1154s ok 3 /struct-info/is-pointer-for-struct-method-arg 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AFK852/struct-info/boxed/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1154s ok 4 /struct-info/boxed 1154s # End of struct-info tests 1154s TAP version 14 1154s # random seed: R02S5534c8357fbf718fa8fdd1e8c8eeafa5 1154s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1154s 1..3 1154s # Start of volumemonitor tests 1154s ok 1 /volumemonitor/connected_drives 1154s ok 2 /volumemonitor/volumes 1154s ok 3 /volumemonitor/mounts 1154s # End of volumemonitor tests 1154s TAP version 14 1154s # random seed: R02S3e6193be71b4cc3239f07bd14da76865 1154s 1..4 1154s # Start of C tests 1154s ok 1 /C/standard-17 1154s # End of C tests 1154s # Start of alignof tests 1154s ok 2 /alignof/fallback 1154s # End of alignof tests 1154s # Start of assert tests 1154s ok 3 /assert/static 1154s # End of assert tests 1154s # Start of struct tests 1154s ok 4 /struct/sizeof_member 1154s # End of struct tests 1154s TAP version 14 1154s # random seed: R02S742eed2a26d73cbacb4609c8c43e324a 1154s 1..10 1154s # Start of buffered-input-stream tests 1154s ok 1 /buffered-input-stream/peek 1154s ok 2 /buffered-input-stream/peek-buffer 1154s ok 3 /buffered-input-stream/set-buffer-size 1154s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1154s ok 4 /buffered-input-stream/read-byte 1154s ok 5 /buffered-input-stream/read 1154s ok 6 /buffered-input-stream/read-async 1154s ok 7 /buffered-input-stream/skip 1154s ok 8 /buffered-input-stream/skip-async 1154s ok 9 /buffered-input-stream/seek 1154s # End of buffered-input-stream tests 1154s # Start of filter-input-stream tests 1154s ok 10 /filter-input-stream/close 1154s # End of filter-input-stream tests 1154s TAP version 14 1154s # random seed: R02S52284016f91c10b1dd824ca3cdca8135 1154s 1..11 1154s # Start of inet-address tests 1154s ok 1 /inet-address/parse 1154s ok 2 /inet-address/any 1154s ok 3 /inet-address/loopback 1154s ok 4 /inet-address/bytes 1154s ok 5 /inet-address/property 1154s # End of inet-address tests 1154s # Start of socket-address tests 1154s ok 6 /socket-address/basic 1154s ok 7 /socket-address/to-string 1154s # End of socket-address tests 1154s # Start of address-mask tests 1154s ok 8 /address-mask/parse 1154s ok 9 /address-mask/property 1154s ok 10 /address-mask/equal 1154s ok 11 /address-mask/match 1154s # End of address-mask tests 1154s TAP version 14 1154s # random seed: R02S1c480ac0fe615f97beb0c1fcc74501ea 1154s 1..15 1154s # Start of gmenu tests 1154s ok - glib/inet-address.test 1154s # Running test: glib/gmenumodel.test 1154s # Executing: glib/gmenumodel.test 1155s ok 1 /gmenu/equality 1155s # slow test /gmenu/equality executed in 0.85 secs 1156s ok 2 /gmenu/random 1156s # slow test /gmenu/random executed in 0.89 secs 1156s ok 3 /gmenu/attributes 1156s ok 4 /gmenu/links 1156s ok 5 /gmenu/mutable 1156s ok 6 /gmenu/convenience 1156s ok 7 /gmenu/menuitem 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1156s ok 8 /gmenu/input-validation 1156s # Start of dbus tests 1157s ok 9 /gmenu/dbus/roundtrip 1157s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1157s ok 10 /gmenu/dbus/subscriptions 1159s ok 11 /gmenu/dbus/threaded 1159s # slow test /gmenu/dbus/threaded executed in 1.04 secs 1159s # Start of peer tests 1159s # Executing: glib/gmenumodel.test 1160s ok 12 /gmenu/dbus/peer/roundtrip 1160s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1160s ok 13 /gmenu/dbus/peer/subscriptions 1160s # End of peer tests 1160s # Start of export tests 1160s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1160s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1160s ok 14 /gmenu/dbus/export/error-handling 1160s # End of export tests 1160s # End of dbus tests 1160s # Start of attributes tests 1160s ok 15 /gmenu/attributes/iterate 1160s # End of attributes tests 1160s # End of gmenu tests 1160s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1160s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1160s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1160s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1160s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1160s ok - glib/gmenumodel.test 1160s # Running test: glib/data-input-stream.test 1160s TAP version 14 1160s # random seed: R02Sfca85849b5597c63e02cecaa8c7154b6 1160s 1..10 1160s # Start of data-input-stream tests 1160s ok 1 /data-input-stream/basic 1160s ok 2 /data-input-stream/read-lines-LF 1160s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1160s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1160s ok 5 /data-input-stream/read-lines-CR 1160s ok 6 /data-input-stream/read-lines-CR-LF 1160s ok 7 /data-input-stream/read-lines-any 1160s ok 8 /data-input-stream/read-until 1160s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1160s # Test vector 1: {"key": "value"}? and ? 1160s ok 9 /data-input-stream/read-upto 1160s ok 10 /data-input-stream/read-int 1160s # End of data-input-stream tests 1160s ok - glib/data-input-stream.test 1160s # Running test: glib/cxx-17.test 1160s ok - glib/cxx-17.test 1160s # Running test: glib/portal-support-flatpak-gsettings-only.test 1160s TAP version 14 1160s # random seed: R02Sb8d522c061da2f027a836b236d130182 1160s 1..2 1160s # Start of gtask tests 1160s # 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. 1160s ok 1 /gtask/name 1160s # Start of name tests 1160s # 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. 1160s ok 2 /gtask/name/macro-wrapper 1160s # End of name tests 1160s # End of gtask tests 1160s TAP version 14 1160s # random seed: R02S334f0584119069bc7653f1c9ea10b9fd 1160s 1..1 1160s # Start of portal-support tests 1160s # Start of flatpak tests 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/runtime 1160s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_BG0752/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1160s ok 1 /portal-support/flatpak/gsettings 1160s # End of flatpak tests 1160s # End of portal-support tests 1160s ok - glib/portal-support-flatpak-gsettings-only.test 1160s # Running test: glib/function-info.test 1160s TAP version 14 1160s # random seed: R02S0aa16af2e40826f5d64908fc481854b4 1160s 1..1 1160s # Start of function-info tests 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_NXW752/function-info/invoker/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_NXW752/function-info/invoker/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_NXW752/function-info/invoker/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_NXW752/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/socket-service.test 1160s TAP version 14 1160s # random seed: R02S856a4a052c403e176ac0ef54d62c2571 1160s 1..4 1160s # Start of socket-service tests 1160s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1160s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe2d4148 and GSocketClientAsyncConnectData 0xe2d63b8 1160s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1160s ok - glib/socket-service.test 1160s # Running test: glib/utf8-pointer.test 1160s ok 1 /socket-service/start-stop 1160s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe2db860 and GSocketClientAsyncConnectData 0xe2db808 1160s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1160s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1160s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe2db470 for GSocketClientAsyncConnectData 0xe2d63b8 1160s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1160s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1160s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1160s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1160s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1160s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe2d5c40 for GSocketClientAsyncConnectData 0xe2db808 1160s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1160s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1160s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1160s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1160s ok 2 /socket-service/read_write_async 1160s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe2dad20 and GSocketClientAsyncConnectData 0xe2db808 1160s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1160s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1160s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe2db568 for GSocketClientAsyncConnectData 0xe2db808 1160s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1160s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1160s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1160s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1160s ok 3 /socket-service/read_writev_async 1160s # Start of threaded tests 1160s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1160s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe2ddeb0 and GSocketClientAsyncConnectData 0xe2dbbe8 1160s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1160s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1160s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe2de098 for GSocketClientAsyncConnectData 0xe2dbbe8 1160s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1160s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1160s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1160s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1160s ok 4 /socket-service/threaded/712570 1160s # End of threaded tests 1160s # End of socket-service tests 1160s TAP version 14 1160s # random seed: R02S954bd0b5c8541c46cbb1575834950b36 1160s 1..3 1160s # Start of utf8 tests 1161s ok 1 /utf8/offsets 1161s # slow test /utf8/offsets executed in 0.99 secs 1161s ok 2 /utf8/lengths 1161s ok 3 /utf8/find 1161s # End of utf8 tests 1161s ok - glib/utf8-pointer.test 1161s # Running test: glib/gdbus-peer.test 1161s TAP version 14 1161s # random seed: R02S0cbadbaddc62c657e619a34fbdfa7218 1161s 1..12 1161s # Start of gdbus tests 1161s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/home 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/cache 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/system-config2 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/config 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/system-data2 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/data 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/state 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/.dirs/runtime 1161s # Testing with unix:dir address 1161s # Testing with unix:tmpdir address 1161s # Testing with unix:path address 1161s ok 1 /gdbus/peer-to-peer 1161s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/home 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/cache 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/system-config2 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/config 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/system-data2 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/data 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/state 1161s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/delayed-message-processing/.dirs/runtime 1161s # Testing with unix:dir address 1162s ok 2 /gdbus/delayed-message-processing 1162s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1162s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/home 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/cache 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/system-config2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/config 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/system-data2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/data 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/state 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/nonce-tcp/.dirs/runtime 1162s ok 3 /gdbus/nonce-tcp 1162s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/home 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/cache 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/system-config2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/config 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/system-data2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/data 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/state 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/tcp-anonymous/.dirs/runtime 1162s ok 4 /gdbus/tcp-anonymous 1162s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/home 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/cache 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/system-config2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/config 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/system-data2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/data 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/state 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/credentials/.dirs/runtime 1162s ok 5 /gdbus/credentials 1162s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/home 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/cache 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/system-config2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/config 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/system-data2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/data 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/state 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/codegen-peer-to-peer/.dirs/runtime 1162s # Testing with unix:dir address 1162s # Machine ID: f68ba451bff547dfae3f64463f5eb956 1163s ok 6 /gdbus/codegen-peer-to-peer 1163s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1163s # Start of peer-to-peer tests 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/signals/.dirs/runtime 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1163s # Testing with unix:dir address 1163s ok 7 /gdbus/peer-to-peer/signals 1163s # Start of invalid tests 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1163s ok 8 /gdbus/peer-to-peer/invalid/server 1163s # Start of conn tests 1163s # Start of stream tests 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1163s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1163s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1163s # End of stream tests 1163s # Start of addr tests 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1163s ok - glib/gdbus-peer.test 1163s # Running test: glib/mount-operation.test 1163s ok - glib/mount-operation.test 1163s # Running test: glib/hmac.test 1163s ok - glib/hmac.test 1163s # Running test: glib/signal-handler.test 1163s ok - glib/signal-handler.test 1163s # Running test: glib/credentials.test 1163s ok - glib/credentials.test 1163s # Running test: glib/autoptr.test 1163s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1163s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1163s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_CNH752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1163s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1163s # End of addr tests 1163s # End of conn tests 1163s # End of invalid tests 1163s # End of peer-to-peer tests 1163s # End of gdbus tests 1163s TAP version 14 1163s # random seed: R02S6536220da82cab08a722f7da4e690237 1163s 1..2 1163s # Start of mount-operation tests 1163s ok 1 /mount-operation/construction 1163s ok 2 /mount-operation/properties 1163s # End of mount-operation tests 1163s TAP version 14 1163s # random seed: R02S8a9bacdf8be33eadf7423130d082691a 1163s 1..37 1163s # Start of hmac tests 1163s ok 1 /hmac/sha1-1 1163s ok 2 /hmac/sha1-2 1163s ok 3 /hmac/sha1-3 1163s ok 4 /hmac/sha1-4 1163s ok 5 /hmac/sha1-5 1163s ok 6 /hmac/sha1-6 1163s ok 7 /hmac/sha1-7 1163s ok 8 /hmac/sha256-1 1163s ok 9 /hmac/sha256-2 1163s ok 10 /hmac/sha256-3 1163s ok 11 /hmac/sha256-4 1163s ok 12 /hmac/sha256-5 1163s ok 13 /hmac/sha256-6 1163s ok 14 /hmac/sha384-1 1163s ok 15 /hmac/sha384-2 1163s ok 16 /hmac/sha384-3 1163s ok 17 /hmac/sha384-4 1163s ok 18 /hmac/sha384-5 1163s ok 19 /hmac/sha384-6 1163s ok 20 /hmac/sha512-1 1163s ok 21 /hmac/sha512-2 1163s ok 22 /hmac/sha512-3 1163s ok 23 /hmac/sha512-4 1163s ok 24 /hmac/sha512-5 1163s ok 25 /hmac/sha512-6 1163s ok 26 /hmac/md5-1 1163s ok 27 /hmac/md5-2 1163s ok 28 /hmac/md5-3 1163s ok 29 /hmac/md5-4 1163s ok 30 /hmac/md5-5 1163s ok 31 /hmac/md5-6 1163s ok 32 /hmac/md5-7 1163s ok 33 /hmac/ref-unref 1163s ok 34 /hmac/copy 1163s ok 35 /hmac/for-data 1163s ok 36 /hmac/for-string 1163s ok 37 /hmac/for-bytes 1163s # End of hmac tests 1163s TAP version 14 1163s # random seed: R02Sa95af3e6e084ffcc6754b00901f22f57 1163s 1..7 1163s # Start of signal tests 1163s # Start of handler tests 1163s # min perf: connected 1 handlers in 0.000 seconds 1163s ok 1 /signal/handler/connect-many 1163s # min perf: disconnected 1 handlers in 0.000 seconds 1163s ok 2 /signal/handler/disconnect-many-ordered 1163s # min perf: disconnected 1 handlers in 0.000 seconds 1163s ok 3 /signal/handler/disconnect-many-inverse 1163s # min perf: disconnected 1 handlers in 0.000 seconds 1163s ok 4 /signal/handler/disconnect-many-random 1163s # min perf: disconnected 1 handlers in 0.000 seconds 1163s ok 5 /signal/handler/disconnect-2-signals 1163s # min perf: disconnected 1 handlers in 0.000 seconds 1163s ok 6 /signal/handler/disconnect-2-objects 1163s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1163s ok 7 /signal/handler/block-many 1163s # End of handler tests 1163s # End of signal tests 1163s TAP version 14 1163s # random seed: R02Sf0ba88786b5771d2e8349ff1691c87fc 1163s 1..1 1163s # Start of credentials tests 1163s # GCredentials:linux-ucred:pid=3679,uid=1000,gid=1000 1163s # GCredentials:linux-ucred:pid=3679,uid=0,gid=1000 1163s ok 1 /credentials/basic 1163s # End of credentials tests 1163s TAP version 14 1163s # random seed: R02S137fc68275cf1ccd911354aeba41d667 1163s 1..6 1163s # Start of autoptr tests 1163s ok 1 /autoptr/autoptr 1163s ok 2 /autoptr/autoptr_steal 1163s ok 3 /autoptr/autolist 1163s ok 4 /autoptr/autoslist 1163s ok 5 /autoptr/autoqueue 1163s ok 6 /autoptr/autoclass 1163s # End of autoptr tests 1163s TAP version 14 1163s # random seed: R02Se4be8b9267efe1ef5b14fa820709178a 1163s 1..121 1163s # Start of date tests 1163s ok 1 /date/basic 1163s ok 2 /date/empty 1163s ok 3 /date/dmy 1163s ok 4 /date/julian 1163s ok 5 /date/compare 1163s ok 6 /date/dates 1163s ok 7 /date/strftime 1163s ok 8 /date/two-digit-years 1163s ok 9 /date/parse 1163s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1163s ok 11 /date/month_substring 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1163s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1163s ok 13 /date/clamp 1163s ok 14 /date/order 1163s ok 15 /date/copy 1163s # Vector 0: 0000-00-00, invalid 1163s # Vector 1: 0001-01-01, valid 1163s # Vector 2: 0000-01-01, invalid 1163s # Vector 3: 2000-02-30, invalid 1163s # Vector 4: 2000-02-29, valid 1163s # Vector 5: 2001-02-29, invalid 1163s # Vector 6: 65535-01-01, valid 1163s ok 16 /date/valid-dmy 1163s # Start of parse tests 1163s # Test 0 1163s # Test 1 1163s ok 17 /date/parse/invalid 1163s # End of parse tests 1163s # Start of year tests 1163s ok 18 /date/year/1 1163s ok 19 /date/year/2 1163s ok 20 /date/year/3 1163s ok 21 /date/year/4 1163s ok 22 /date/year/5 1163s ok 23 /date/year/6 1163s ok 24 /date/year/7 1163s ok 25 /date/year/8 1163s ok 26 /date/year/9 1163s ok 27 /date/year/10 1163s ok 28 /date/year/11 1163s ok 29 /date/year/12 1163s ok 30 /date/year/13 1163s ok 31 /date/year/14 1163s ok 32 /date/year/98 1163s ok 33 /date/year/99 1163s ok - glib/autoptr.test 1163s # Running test: glib/date.test 1163s ok 34 /date/year/100 1163s ok 35 /date/year/101 1163s ok 36 /date/year/102 1163s ok 37 /date/year/103 1163s ok 38 /date/year/397 1163s ok 39 /date/year/398 1163s ok 40 /date/year/399 1163s ok 41 /date/year/400 1163s ok 42 /date/year/401 1163s ok 43 /date/year/402 1163s ok 44 /date/year/403 1163s ok 45 /date/year/404 1163s ok 46 /date/year/405 1163s ok 47 /date/year/406 1163s ok 48 /date/year/1598 1163s ok 49 /date/year/1599 1163s ok 50 /date/year/1600 1163s ok 51 /date/year/1601 1163s ok 52 /date/year/1602 1163s ok 53 /date/year/1650 1163s ok 54 /date/year/1651 1163s ok 55 /date/year/1897 1163s ok 56 /date/year/1898 1163s ok 57 /date/year/1899 1163s ok 58 /date/year/1900 1163s ok 59 /date/year/1901 1163s ok 60 /date/year/1902 1163s ok 61 /date/year/1903 1163s ok 62 /date/year/1961 1163s ok 63 /date/year/1962 1163s ok 64 /date/year/1963 1163s ok 65 /date/year/1964 1163s ok 66 /date/year/1965 1163s ok 67 /date/year/1967 1163s ok 68 /date/year/1968 1163s ok 69 /date/year/1969 1163s ok 70 /date/year/1970 1163s ok 71 /date/year/1971 1163s ok 72 /date/year/1972 1163s ok 73 /date/year/1973 1163s ok 74 /date/year/1974 1163s ok 75 /date/year/1975 1163s ok 76 /date/year/1976 1163s ok 77 /date/year/1977 1163s ok 78 /date/year/1978 1163s ok 79 /date/year/1979 1163s ok 80 /date/year/1980 1163s ok 81 /date/year/1981 1163s ok 82 /date/year/1982 1163s ok 83 /date/year/1983 1163s ok 84 /date/year/1984 1163s ok 85 /date/year/1985 1163s ok 86 /date/year/1986 1163s ok 87 /date/year/1987 1163s ok 88 /date/year/1988 1163s ok 89 /date/year/1989 1163s ok 90 /date/year/1990 1163s ok 91 /date/year/1991 1163s ok 92 /date/year/1992 1163s ok 93 /date/year/1993 1163s ok 94 /date/year/1994 1163s ok 95 /date/year/1995 1163s ok 96 /date/year/1996 1163s ok 97 /date/year/1997 1163s ok 98 /date/year/1998 1163s ok 99 /date/year/1999 1163s ok 100 /date/year/2000 1163s ok 101 /date/year/2001 1163s ok 102 /date/year/2002 1163s ok 103 /date/year/2003 1163s ok 104 /date/year/2004 1163s ok 105 /date/year/2005 1163s ok 106 /date/year/2006 1163s ok 107 /date/year/2007 1163s ok 108 /date/year/2008 1163s ok 109 /date/year/2009 1163s ok 110 /date/year/2010 1163s ok 111 /date/year/2011 1163s ok 112 /date/year/2012 1163s ok 113 /date/year/3000 1163s ok 114 /date/year/3001 1163s ok 115 /date/year/3002 1163s ok 116 /date/year/3998 1163s ok 117 /date/year/3999 1163s ok 118 /date/year/4000 1163s ok 119 /date/year/4001 1163s ok 120 /date/year/4002 1163s ok - glib/date.test 1163s ok 121 /date/year/4003 1163s # End of year tests 1163s # End of date tests 1163s # Running test: glib/base64.test 1163s TAP version 14 1163s # random seed: R02S89c8beb2d83b2cb31784e44c73b69694 1163s 1..28 1163s # Start of base64 tests 1163s ok 1 /base64/encode 1163s ok 2 /base64/decode 1163s ok 3 /base64/decode-inplace 1163s ok 4 /base64/encode-decode 1163s # Start of full tests 1163s ok 5 /base64/full/1 1163s ok 6 /base64/full/2 1163s ok 7 /base64/full/3 1163s ok 8 /base64/full/4 1163s # End of full tests 1163s # Start of encode tests 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1163s ok 9 /base64/encode/empty 1163s # Start of incremental tests 1163s # Start of small-block tests 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1163s ok 10 /base64/encode/incremental/small-block/1 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1163s ok 11 /base64/encode/incremental/small-block/2 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1163s ok 12 /base64/encode/incremental/small-block/3 1163s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1163s ok - glib/base64.test 1163s ok 13 /base64/encode/incremental/small-block/4 1163s # End of small-block tests 1163s # End of incremental tests 1163s # End of encode tests 1163s # Start of incremental tests 1163s # Start of nobreak tests 1163s ok 14 /base64/incremental/nobreak/1 1163s ok 15 /base64/incremental/nobreak/2 1163s ok 16 /base64/incremental/nobreak/3 1163s ok 17 /base64/incremental/nobreak/4-a 1163s ok 18 /base64/incremental/nobreak/4-b 1163s ok 19 /base64/incremental/nobreak/4-c 1163s # End of nobreak tests 1163s # Start of break tests 1163s ok 20 /base64/incremental/break/1 1163s ok 21 /base64/incremental/break/2 1163s ok 22 /base64/incremental/break/3 1163s # End of break tests 1163s # Start of smallblock tests 1163s ok 23 /base64/incremental/smallblock/1 1163s ok 24 /base64/incremental/smallblock/2 1163s ok 25 /base64/incremental/smallblock/3 1163s ok 26 /base64/incremental/smallblock/4 1163s # End of smallblock tests 1163s # End of incremental tests 1163s # Start of decode tests 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1163s ok 27 /base64/decode/empty 1163s # End of decode tests 1163s # Start of encode-decode tests 1163s # Vector 0: 1163s # Vector 1: f 1163s # Vector 2: fo 1163s # Vector 3: foo 1163s # Vector 4: foob 1163s # Vector 5: fooba 1163s # Vector 6: foobar 1163s ok 28 /base64/encode-decode/rfc4648 1163s # End of encode-decode tests 1163s # End of base64 tests 1163s # Running test: glib/gsocketclient-slow.test 1163s TAP version 14 1163s # random seed: R02S02c024212cb32e932920237b09ef662b 1163s 1..4 1163s # Start of socket-client tests 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1163s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1163s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xff37180 and GSocketClientAsyncConnectData 0xff38ea8 1163s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1163s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1163s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xff3e338 for GSocketClientAsyncConnectData 0xff38ea8 1163s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1164s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1164s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1164s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1164s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1164s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1164s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xff3e338 for GSocketClientAsyncConnectData 0xff38ea8 1164s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1164s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1164s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1164s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1164s ok 1 /socket-client/connection-fail 1164s # slow test /socket-client/connection-fail executed in 1.20 secs 1164s # Start of happy-eyeballs tests 1164s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xff3de30 and GSocketClientAsyncConnectData 0xff38ea8 1164s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1164s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1164s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xff3e338 for GSocketClientAsyncConnectData 0xff38ea8 1164s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1164s # Executing: glib/gsocketclient-slow.test 1165s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1165s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1165s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1165s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1165s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1165s ok 2 /socket-client/happy-eyeballs/slow 1165s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1165s # Start of cancellation tests 1165s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xff40968 and GSocketClientAsyncConnectData 0xff3d970 1165s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1165s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1165s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1165s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xff3d9b8 and GSocketClientAsyncConnectData 0xff38ea8 1165s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1165s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1165s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xff3e250 for GSocketClientAsyncConnectData 0xff38ea8 1165s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1166s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1166s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1166s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1166s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1166s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1166s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1166s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1166s # End of cancellation tests 1166s # End of happy-eyeballs tests 1166s # End of socket-client tests 1166s ok - glib/gsocketclient-slow.test 1166s # Running test: glib/utils-c-11.test 1166s TAP version 14 1166s # random seed: R02Sd8adc68c90c24343ac58f5dc3ec8d5b8 1166s 1..41 1166s # Start of utils tests 1166s ok 1 /utils/language-names 1166s ok 2 /utils/locale-variants 1166s ok 3 /utils/version 1166s ok 4 /utils/appname 1166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1166s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1166s ok 5 /utils/prgname-thread-safety 1166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1166s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1166s ok 6 /utils/tmpdir 1166s ok 7 /utils/basic_bits 1166s ok 8 /utils/bits 1166s ok 9 /utils/swap 1166s ok - glib/utils-c-11.test 1166s # Running test: glib/utils-c-99.test 1166s ok - glib/utils-c-99.test 1166s # Running test: glib/cond.test 1166s ok 10 /utils/find-program 1166s ok 11 /utils/find-program-for-path 1166s ok 12 /utils/debug 1166s ok 13 /utils/codeset 1166s ok 14 /utils/codeset2 1166s ok 15 /utils/console-charset 1166s ok 16 /utils/gettext 1166s ok 17 /utils/username 1166s ok 18 /utils/realname 1166s ok 19 /utils/hostname 1166s ok 20 /utils/xdgdirs 1166s ok 21 /utils/specialdir 1166s # NAME: Ubuntu 1166s ok 22 /utils/os-info 1166s ok 23 /utils/clear-pointer 1166s ok 24 /utils/clear-pointer-cast 1166s ok 25 /utils/take-pointer 1166s ok 26 /utils/clear-source 1166s ok 27 /utils/misc-mem 1166s # /utils/aligned-mem summary: Aligned memory allocator 1166s # Alignment must not be zero 1166s # Alignment must be a power of two 1166s # Alignment must be a multiple of sizeof(void*) 1166s ok 28 /utils/aligned-mem 1166s # /utils/free-sized summary: Check that g_free_sized() works 1166s ok 29 /utils/free-sized 1166s ok 30 /utils/nullify 1166s ok 31 /utils/atexit 1166s ok 32 /utils/check-setuid 1166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1166s ok 33 /utils/int-limits 1166s ok 34 /utils/clear-list 1166s ok 35 /utils/clear-slist 1166s ok 36 /utils/steal-handle-id 1166s # Start of specialdir tests 1166s ok 37 /utils/specialdir/desktop 1166s # End of specialdir tests 1166s # Start of clear-pointer tests 1166s ok 38 /utils/clear-pointer/side-effects 1166s # End of clear-pointer tests 1166s # Start of aligned-mem tests 1166s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1166s ok 39 /utils/aligned-mem/alignment 1166s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1166s ok 40 /utils/aligned-mem/zeroed 1166s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1166s ok 41 /utils/aligned-mem/free-sized 1166s # Start of subprocess tests 1166s # End of subprocess tests 1166s # End of aligned-mem tests 1166s # End of utils tests 1166s TAP version 14 1166s # random seed: R02S21841b15bba94d352d907fb3ceed55a9 1166s 1..41 1166s # Start of utils tests 1166s ok 1 /utils/language-names 1166s ok 2 /utils/locale-variants 1166s ok 3 /utils/version 1166s ok 4 /utils/appname 1166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1166s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1166s ok 5 /utils/prgname-thread-safety 1166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1166s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1166s ok 6 /utils/tmpdir 1166s ok 7 /utils/basic_bits 1166s ok 8 /utils/bits 1166s ok 9 /utils/swap 1166s ok 10 /utils/find-program 1166s ok 11 /utils/find-program-for-path 1166s ok 12 /utils/debug 1166s ok 13 /utils/codeset 1166s ok 14 /utils/codeset2 1166s ok 15 /utils/console-charset 1166s ok 16 /utils/gettext 1166s ok 17 /utils/username 1166s ok 18 /utils/realname 1166s ok 19 /utils/hostname 1166s ok 20 /utils/xdgdirs 1166s ok 21 /utils/specialdir 1166s # NAME: Ubuntu 1166s ok 22 /utils/os-info 1166s ok 23 /utils/clear-pointer 1166s ok 24 /utils/clear-pointer-cast 1166s ok 25 /utils/take-pointer 1166s ok 26 /utils/clear-source 1166s ok 27 /utils/misc-mem 1166s # /utils/aligned-mem summary: Aligned memory allocator 1166s # Alignment must not be zero 1166s # Alignment must be a power of two 1166s # Alignment must be a multiple of sizeof(void*) 1166s ok 28 /utils/aligned-mem 1166s # /utils/free-sized summary: Check that g_free_sized() works 1166s ok 29 /utils/free-sized 1166s ok 30 /utils/nullify 1166s ok 31 /utils/atexit 1166s ok 32 /utils/check-setuid 1166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1166s ok 33 /utils/int-limits 1166s ok 34 /utils/clear-list 1166s ok 35 /utils/clear-slist 1166s ok 36 /utils/steal-handle-id 1166s # Start of specialdir tests 1166s ok 37 /utils/specialdir/desktop 1166s # End of specialdir tests 1166s # Start of clear-pointer tests 1166s ok 38 /utils/clear-pointer/side-effects 1166s # End of clear-pointer tests 1166s # Start of aligned-mem tests 1166s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1166s ok 39 /utils/aligned-mem/alignment 1166s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1166s ok 40 /utils/aligned-mem/zeroed 1166s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1166s ok 41 /utils/aligned-mem/free-sized 1166s # Start of subprocess tests 1166s # End of subprocess tests 1166s # End of aligned-mem tests 1166s # End of utils tests 1166s TAP version 14 1166s # random seed: R02S6c9d243fc600f8de10b4c1224353f484 1166s 1..4 1166s # Start of thread tests 1166s ok 1 /thread/cond1 1166s ok 2 /thread/cond2 1166s # Start of cond tests 1167s ok 3 /thread/cond/wait-until 1167s # slow test /thread/cond/wait-until executed in 1.02 secs 1167s # Start of wait-until tests 1167s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1167s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1168s ok 4 /thread/cond/wait-until/contended-and-interrupted 1168s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1168s # End of wait-until tests 1168s # End of cond tests 1168s # End of thread tests 1168s ok - glib/cond.test 1168s TAP version 14 1168s # random seed: R02S61aee08d7953f1561f4b3f015167c41c 1168s 1..5 1168s # Start of sort tests 1168s ok 1 /sort/basic 1168s ok 2 /sort/zero-elements 1168s ok 3 /sort/stable 1168s ok 4 /sort/big 1168s # Running test: glib/sort.test 1168s ok - glib/sort.test 1168s ok 5 /sort/deprecated 1168s # End of sort tests 1168s # Running test: glib/cxx-14.test 1168s ok - glib/cxx-14.test 1168s TAP version 14 1168s # random seed: R02S72a4c36cf31d1a30931b910090ec6833 1168s 1..2 1168s # Start of gtask tests 1168s # 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. 1168s ok 1 /gtask/name 1168s # Start of name tests 1168s # 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. 1168s ok 2 /gtask/name/macro-wrapper 1168s # End of name tests 1168s # End of gtask tests 1168s TAP version 14 1168s # random seed: R02S92c31494a6f225f0d0d5cc39d6d61d59 1168s 1..4 1168s # Start of sandbox tests 1168s # Running test: glib/sandbox.test 1168s ok - glib/sandbox.test 1168s # Running test: glib/properties-refcount1.test 1168s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/home 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/cache 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_V4OS52/sandbox/none/.dirs/system-config2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/config 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_V4OS52/sandbox/none/.dirs/system-data2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/data 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/state 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_V4OS52/sandbox/none/.dirs/runtime 1168s ok 1 /sandbox/none 1168s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/home 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/cache 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/system-config2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/config 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/system-data2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/data 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/state 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_V4OS52/sandbox/snap/.dirs/runtime 1168s # Created snap.yaml in /tmp/test_sandbox_V4OS52/snap/current/meta/snap.yaml 1168s ok 2 /sandbox/snap 1168s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/home 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/cache 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/system-config2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/config 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/system-data2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/data 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/state 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_V4OS52/sandbox/classic-snap/.dirs/runtime 1168s # Created snap.yaml in /tmp/test_sandbox_V4OS52/snap/current/meta/snap.yaml 1168s ok 3 /sandbox/classic-snap 1168s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/home 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/cache 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/system-config2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/config 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/system-data2 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/data 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/state 1168s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/runtime 1168s # Creating .flatpak-info in /tmp/test_sandbox_V4OS52/sandbox/flatpak/.dirs/runtime/.flatpak-info 1168s ok 4 /sandbox/flatpak 1168s # End of sandbox tests 1168s TAP version 14 1168s # random seed: R02S61e571d836e085121aec63726318ce99 1168s 1..1 1168s # Start of gobject tests 1168s # Start of refcount tests 1168s # .b 1168s # .d 1168s # .e 1168s # .f 1168s # .c 1168s # .b 1168s # .d 1168s # .f 1168s # .e 1168s # .c 1168s # .b 1168s # .d 1168s # .f 1168s # .e 1168s # .c 1168s # .b 1168s # .d 1168s # .f 1168s # .e 1168s # .c 1168s # .b 1168s # .d 1169s # .f 1169s # .e 1169s # .c 1169s # .b 1169s # .d 1169s # .f 1169s # .e 1169s # .b 1169s # .c 1169s # .d 1169s # .f 1169s # .e 1169s # .b 1169s # .d 1169s # .c 1169s # .b 1169s # .f 1169s # .e 1169s # .d 1169s # .c 1169s # .b 1169s # .f 1169s # .d 1169s # .e 1169s # .c 1169s # .b 1169s # .d 1169s # .f 1169s # .e 1169s # .b 1169s # .c 1169s # .d 1169s # .f 1169s # .e 1169s # .b 1169s # .c 1169s # .d 1169s # Executing: glib/properties-refcount1.test 1169s # .f 1169s # .e 1169s # .b 1169s # .d 1169s # .c 1170s # .b 1170s # .f 1170s # .e 1170s # .d 1170s # .c 1170s # .b 1170s # .f 1170s # .e 1170s # .d 1170s # .c 1170s # .b 1170s # .f 1170s # .d 1170s # .e 1170s # .b 1170s # .c 1170s # .f 1170s # .d 1170s # .b 1170s # .e 1170s # .c 1170s # .d 1170s # .f 1170s # .b 1170s # .e 1170s # .c 1170s # .d 1170s # .f 1170s # .b 1170s # .e 1170s # .c 1170s # .d 1170s # .b 1170s # .f 1170s # .d 1170s # .e 1170s # .c 1170s # .b 1170s # .f 1170s # .d 1170s # .b 1171s # .c 1171s # .e 1171s # .f 1171s # .d 1171s # .b 1171s # .c 1171s # .f 1171s # .e 1171s # .d 1171s # .b 1171s # .c 1171s # .f 1171s # .e 1171s # .d 1171s # .b 1171s ok 1 /gobject/refcount/properties-1 1171s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1171s # End of refcount tests 1171s # End of gobject tests 1171s ok - glib/properties-refcount1.test 1171s # Running test: glib/cmph-bdz.test 1171s TAP version 14 1171s # random seed: R02S48b891d3597f57abb1bf72e7ed68ca34 1171s 1..2 1171s # Start of cmph-bdz tests 1171s ok 1 /cmph-bdz/search 1171s ok 2 /cmph-bdz/search-packed 1171s # End of cmph-bdz tests 1171s ok - glib/cmph-bdz.test 1171s # Running test: glib/properties.test 1171s TAP version 14 1171s # random seed: R02Sfd9274336b4d681e6a4ce797d62013cd 1171s 1..14 1171s # Start of properties tests 1171s ok 1 /properties/install 1171s ok 2 /properties/install-many 1171s ok 3 /properties/notify 1171s ok 4 /properties/notify-queue 1171s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1171s ok 5 /properties/construct 1171s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1171s # Test g_object_get_property with an initialized value 1171s # Test g_object_get_property with an uninitialized value 1171s # Test g_object_get_property with a transformable value 1171s ok 6 /properties/get-property 1171s ok 7 /properties/testv_with_no_properties 1171s ok 8 /properties/testv_with_valid_properties 1171s ok 9 /properties/testv_with_invalid_property_type 1171s ok 10 /properties/testv_with_invalid_property_names 1171s ok 11 /properties/testv_getv 1171s ok 12 /properties/testv_notify_queue 1171s # Start of notify tests 1171s ok 13 /properties/notify/too-many-freezes 1171s # End of notify tests 1171s # Start of set-property tests 1171s # Start of variant tests 1171s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1171s ok 14 /properties/set-property/variant/floating 1171s # End of variant tests 1171s # End of set-property tests 1171s # End of properties tests 1171s ok - glib/properties.test 1171s # Running test: glib/portal-support-flatpak-full.test 1171s TAP version 14 1171s # random seed: R02S3cff2a414b089e39b92902bb315e3370 1171s 1..1 1171s # Start of portal-support tests 1171s # Start of flatpak tests 1171s ok - glib/portal-support-flatpak-full.test 1171s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/home 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/cache 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/system-config2 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/config 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/system-data2 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/data 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/state 1171s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/runtime 1171s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_UUNQ52/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1171s ok 1 /portal-support/flatpak/full 1171s # End of flatpak tests 1171s # End of portal-support tests 1171s # Running test: glib/g-file-info.test 1171s TAP version 14 1171s # random seed: R02Sf2d6333ef9abff5d0dccbf3bd0adbe8b 1171s 1..6 1171s # Start of g-file-info tests 1171s ok 1 /g-file-info/test_g_file_info 1171s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1171s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1171s ok 2 /g-file-info/xattrs 1171s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1171s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1171s ok 3 /g-file-info/set-modified-date-time-precision 1171s # Start of test_g_file_info tests 1171s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1171s ok 4 /g-file-info/test_g_file_info/modification-time 1171s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1171s ok 5 /g-file-info/test_g_file_info/access-time 1171s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1171s ok 6 /g-file-info/test_g_file_info/creation-time 1171s # End of test_g_file_info tests 1171s ok - glib/g-file-info.test 1171s # Running test: glib/properties-refcount3.test 1171s # End of g-file-info tests 1171s TAP version 14 1171s # random seed: R02S5619b923f5ae3ece10102d601b60cfbe 1171s 1..1 1171s # Start of gobject tests 1171s # Start of refcount tests 1174s # Executing: glib/properties-refcount3.test 1179s # Executing: glib/properties-refcount3.test 1184s # Executing: glib/properties-refcount3.test 1189s # Executing: glib/properties-refcount3.test 1194s # Executing: glib/properties-refcount3.test 1199s # Executing: glib/properties-refcount3.test 1201s # 1201s # stopping 1201s # 1201s # stopped 1201s # 1201s # 13988893 323307 1201s # 1201s ok 1 /gobject/refcount/properties-3 1201s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1201s # End of refcount tests 1201s # End of gobject tests 1201s ok - glib/properties-refcount3.test 1201s # Running test: glib/spawn-singlethread.test 1201s TAP version 14 1201s # random seed: R02S6a102afdfa67a85f8c28e4af233b270e 1201s 1..9 1201s # Start of gthread tests 1201s ok 1 /gthread/spawn-single-sync 1201s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1201s ok 2 /gthread/spawn-stderr-socket 1201s ok 3 /gthread/spawn-single-async 1201s # thread 1 1201s # thread 1 1201s ok - glib/spawn-singlethread.test 1201s # Running test: glib/hostutils.test 1201s ok - glib/hostutils.test 1201s # Running test: glib/repository.test 1201s ok - glib/repository.test 1201s # Running test: glib/gi-inspect-typelib.py.test 1201s ok 4 /gthread/spawn-single-async-with-fds 1201s ok 5 /gthread/spawn-async-with-invalid-fds 1201s ok 6 /gthread/spawn-script 1201s ok 7 /gthread/spawn-posix-spawn 1201s # Start of spawn tests 1201s ok 8 /gthread/spawn/nonexistent 1201s # FD map: 1201s # • 5 → 15 1201s # • 6 → 16 1201s # • 7 → 17 1201s # • 8 → 18 1201s # • 9 → 19 1201s # • 10 → 20 1201s # • 11 → 21 1201s # • 12 → 22 1201s # • 13 → 23 1201s # • 3 → 13 1201s ok 9 /gthread/spawn/fd-assignment-clash 1201s # End of spawn tests 1201s # End of gthread tests 1201s TAP version 14 1201s # random seed: R02Se4723c74024de4d0aa9d79007be6a63a 1201s 1..3 1201s # Start of hostutils tests 1201s ok 1 /hostutils/to_ascii 1201s ok 2 /hostutils/to_unicode 1201s ok 3 /hostutils/is_ip_addr 1201s # End of hostutils tests 1201s TAP version 14 1201s # random seed: R02S3aa6ba82a1c42ec36891a8daadb14051 1201s 1..23 1201s # Start of repository tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/basic/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/basic/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/basic/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/basic/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/basic/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/basic/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/basic/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/basic/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/basic/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/basic/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1201s ok 1 /repository/basic 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/info/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/info/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1201s ok 2 /repository/info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/dependencies/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/dependencies/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/dependencies/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1201s ok 3 /repository/dependencies 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/arg-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/arg-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/arg-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1201s ok 4 /repository/arg-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/callable-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/callable-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/callable-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1201s ok 5 /repository/callable-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/callback-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/callback-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/callback-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1201s ok 6 /repository/callback-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/char-types/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/char-types/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/char-types/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/char-types/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/char-types/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/char-types/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/char-types/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/char-types/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/char-types/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/char-types/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1201s ok 7 /repository/char-types 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/constructor-return-type/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1201s ok 8 /repository/constructor-return-type 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/enum-info-c-identifier/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1201s ok 9 /repository/enum-info-c-identifier 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/enum-info-static-methods/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/enum-info-static-methods summary: Test an enum with methods 1201s ok 10 /repository/enum-info-static-methods 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/error-quark/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/error-quark/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/error-quark/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/error-quark summary: Test finding an error quark by error domain 1201s ok 11 /repository/error-quark 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/flags-info-c-identifier/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1201s ok 12 /repository/flags-info-c-identifier 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/fundamental-ref-func/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1201s ok 13 /repository/fundamental-ref-func 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/instance-method-ownership-transfer/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1201s ok 14 /repository/instance-method-ownership-transfer 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/object-gtype-interfaces/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1201s ok 15 /repository/object-gtype-interfaces 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/signal-info-with-array-length-arg/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1201s ok 16 /repository/signal-info-with-array-length-arg 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/type-info-name/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/type-info-name/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/type-info-name/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1201s ok 17 /repository/type-info-name 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/vfunc-info-with-no-invoker/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1201s ok 18 /repository/vfunc-info-with-no-invoker 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1201s ok 19 /repository/vfunc-info-with-invoker-on-interface 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1201s ok 20 /repository/vfunc-info-with-invoker-on-object 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/find-by-gtype/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/find-by-gtype summary: Test finding a GType 1201s ok 21 /repository/find-by-gtype 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/loaded-namespaces/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1201s ok 22 /repository/loaded-namespaces 1201s # Start of base-info tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_DC3U52/repository/base-info/clear/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1201s ok 23 /repository/base-info/clear 1201s # End of base-info tests 1201s # End of repository tests 1201s TAP version 13 1201s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmploo9hh0d 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1201s # Return code: 0 1201s # Output: 1201s # Usage: 1201s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1201s # 1201s # Help Options: 1201s # -h, --help Show help options 1201s # 1201s # Application Options: 1201s # --typelib-version=VERSION Typelib version to inspect 1201s # --print-shlibs List the shared libraries the typelib requires 1201s # --print-typelibs List other typelibs the inspected typelib requires 1201s # Error: 1201s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpqn8o4hjt 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1201s # Return code: 1 1201s # Output: 1201s # 1201s # Error: 1201s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1201s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpe7m_m3t4 1201s # Running: ['/usr/bin/gi-inspect-typelib'] 1201s # Return code: 1 1201s # Output: 1201s # 1201s # Error: 1201s # Please specify exactly one namespace 1201s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmp1mkj8gxq 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgobject-2.0.so.0 1201s # shlib: libglib-2.0.so.0 1201s # Error: 1201s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmp64knqm54 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # 1201s # Error: 1201s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpm08057ut 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgobject-2.0.so.0 1201s # shlib: libglib-2.0.so.0 1201s # Error: 1201s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmp8roxovfb 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgobject-2.0.so.0 1201s # Error: 1201s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpd9faqm7o 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # typelib: GLib-2.0 1201s # Error: 1201s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpgsw944lx 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgobject-2.0.so.0 1201s # typelib: GLib-2.0 1201s # Error: 1201s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpcd4qfn7l 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgio-2.0.so.0 1201s # Error: 1201s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpsarxvf0s 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # typelib: GObject-2.0 1201s # typelib: GLib-2.0 1201s # typelib: GModule-2.0 1201s # Error: 1201s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1201s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1201s # tmpdir: /tmp/tmpy6s9479k 1201s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1201s # Return code: 0 1201s # Output: 1201s # shlib: libgio-2.0.so.0 1201s # typelib: GObject-2.0 1201s # typelib: GLib-2.0 1201s # typelib: GModule-2.0 1201s # Error: 1201s 1..12 1201s ok - glib/gi-inspect-typelib.py.test 1201s # Running test: glib/debugcontroller.test 1201s TAP version 14 1201s # random seed: R02Sea20b19a1045f9c06452555d0cffef5e 1201s 1..3 1201s # Start of debug-controller tests 1201s # Start of dbus tests 1201s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1201s # GLib-GIO-DEBUG: Debug output enabled 1201s # GLib-GIO-DEBUG: Debug output disabled 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 1 /debug-controller/dbus/basic 1201s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 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 2 /debug-controller/dbus/duplicate 1201s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1201s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1201s # End of dbus tests 1201s # End of debug-controller tests 1201s ok - glib/debugcontroller.test 1201s # Running test: glib/static-link.test 1201s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1201s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1201s and make sure you have glib build dependencies installed, including 1201s meson. 1201s ok # SKIP - glib/static-link.test 1201s # Running test: glib/signals.test 1201s TAP version 14 1201s # random seed: R02S97e3ef19fca2124f6221e40028676c26 1201s 1..31 1201s # Start of gobject tests 1201s # Start of signals tests 1201s ok 1 /gobject/signals/all-types 1201s ok 2 /gobject/signals/variant 1201s ok 3 /gobject/signals/destroy-target-object 1201s ok 4 /gobject/signals/generic-marshaller-1 1201s ok 5 /gobject/signals/generic-marshaller-2 1201s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1201s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1201s ok 8 /gobject/signals/generic-marshaller-int-return 1201s ok 9 /gobject/signals/generic-marshaller-uint-return 1201s ok 10 /gobject/signals/generic-marshaller-interface-return 1201s ok 11 /gobject/signals/custom-marshaller 1201s ok 12 /gobject/signals/connect 1201s ok 13 /gobject/signals/emission-hook 1201s ok 14 /gobject/signals/emitv 1201s ok 15 /gobject/signals/accumulator 1201s # Signal: accumulator-class-first 1201s # Signal: accumulator-class-last 1201s # Signal: accumulator-class-cleanup 1201s # Signal: accumulator-class-first-last 1201s # Signal: accumulator-class-first-last-cleanup 1201s # Signal: accumulator-class-last-cleanup 1201s ok 16 /gobject/signals/accumulator-class 1201s ok 17 /gobject/signals/introspection 1201s ok 18 /gobject/signals/block-handler 1201s ok 19 /gobject/signals/stop-emission 1201s ok 20 /gobject/signals/invocation-hint 1201s ok 21 /gobject/signals/test-disconnection-wrong-object 1201s ok 22 /gobject/signals/clear-signal-handler 1201s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1201s ok 23 /gobject/signals/lookup 1201s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1201s ok 24 /gobject/signals/parse-name 1201s ok 25 /gobject/signals/is-valid-name 1201s ok 26 /gobject/signals/weak-ref-disconnect 1201s # Start of lookup tests 1201s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1201s ok 27 /gobject/signals/lookup/invalid 1201s # End of lookup tests 1201s # Start of parse-name tests 1201s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1201s # Parser input: 1201s # Parser input: 7zip 1201s # Parser input: invalid:signal 1201s # Parser input: simple-detailed:: 1201s # Parser input: simple-detailed: 1201s # Parser input: : 1201s # Parser input: :: 1201s # Parser input: :valid-detail 1201s # Parser input: ::valid-detail 1201s ok 28 /gobject/signals/parse-name/invalid 1201s # End of parse-name tests 1201s # Start of invalid-name tests 1201s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1201s ok 29 /gobject/signals/invalid-name/colon 1201s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1201s ok 30 /gobject/signals/invalid-name/first-char 1201s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1201s ok 31 /gobject/signals/invalid-name/empty 1201s # End of invalid-name tests 1201s # End of signals tests 1201s # End of gobject tests 1201s ok - glib/signals.test 1201s # Running test: glib/readwrite.test 1201s TAP version 14 1201s # random seed: R02S649fa380f66da6a0b061bb5bb6d1eb73 1201s 1..3 1201s # Start of readwrite tests 1201s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1201s ok 1 /readwrite/test_g_file_open_readwrite 1201s ok 2 /readwrite/test_g_file_create_readwrite 1201s ok 3 /readwrite/test_g_file_replace_readwrite 1201s # End of readwrite tests 1201s ok - glib/readwrite.test 1201s # Running test: glib/hash.test 1201s TAP version 14 1201s # random seed: R02Sc3a102a3603f4ccbe0e16da94080e2d3 1201s 1..34 1201s # Start of hash tests 1201s ok 1 /hash/misc 1201s ok 2 /hash/one 1201s ok 3 /hash/honeyman 1201s ok 4 /hash/direct 1201s ok 5 /hash/direct2 1201s ok 6 /hash/int 1201s ok 7 /hash/int64 1201s ok 8 /hash/double 1201s ok 9 /hash/string 1201s ok 10 /hash/set 1201s ok 11 /hash/set-ref 1201s ok 12 /hash/ref 1201s ok 13 /hash/remove-all 1201s ok 14 /hash/recursive-remove-all 1201s ok 15 /hash/find 1201s ok 16 /hash/foreach 1201s ok 17 /hash/foreach-steal 1201s ok 18 /hash/steal-extended 1201s ok 19 /hash/steal-all-keys 1201s ok 20 /hash/steal-all-values 1201s ok 21 /hash/lookup-extended 1201s ok 22 /hash/new-similar 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1201s ok 23 /hash/lookup-null-key 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1201s ok 24 /hash/destroy-modify 1201s ok 25 /hash/consistency 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1201s ok 26 /hash/iter-replace 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1201s ok 27 /hash/set-insert-corruption 1201s ok 28 /hash/set-to-strv 1201s ok 29 /hash/get-keys-as-ptr-array 1201s ok 30 /hash/get-values-as-ptr-array 1201s ok 31 /hash/primes 1201s # Start of int64 tests 1201s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1201s ok 32 /hash/int64/collisions 1201s # End of int64 tests 1201s # Start of double tests 1201s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1201s ok 33 /hash/double/collisions 1201s # End of double tests 1201s # Start of recursive-remove-all tests 1201s # End of recursive-remove-all tests 1201s # Start of steal-extended tests 1201s ok 34 /hash/steal-extended/optional 1201s # End of steal-extended tests 1201s # End of hash tests 1201s ok - glib/hash.test 1201s # Running test: glib/cxx.test 1201s ok - glib/cxx.test 1201s TAP version 14 1201s # random seed: R02S1cfa249040c12d88caf4792eec111bb9 1201s 1..2 1201s # Start of gtask tests 1201s # 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. 1201s ok 1 /gtask/name 1201s # Start of name tests 1201s # 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. 1201s ok 2 /gtask/name/macro-wrapper 1201s # End of name tests 1201s # End of gtask tests 1201s # Running test: glib/type.test 1201s TAP version 14 1201s # random seed: R02S3e0c1b4fdf41ac23c57401dd51accef5 1201s 1..6 1201s # Start of type tests 1201s ok 1 /type/registration-serial 1201s ok 2 /type/interface-prerequisite 1201s ok 3 /type/interface-check 1201s ok 4 /type/next-base 1201s ok 5 /type/is-a 1201s # Invalid types can?t be queried. 1201s # Unclassed types can?t be queried. 1201s ok 6 /type/query 1201s # End of type tests 1201s ok - glib/type.test 1201s # Running test: glib/glistmodel.test 1201s TAP version 14 1201s # random seed: R02S2a310243c6a6e390a62e1cef1cd12253 1201s 1..18 1201s # Start of glistmodel tests 1201s # Start of store tests 1201s ok 1 /glistmodel/store/properties 1201s ok 2 /glistmodel/store/non-gobjects 1201s ok 3 /glistmodel/store/boundaries 1201s ok 4 /glistmodel/store/refcounts 1201s ok 5 /glistmodel/store/sorted 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1201s ok 6 /glistmodel/store/splice-replace-middle 1201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1201s ok 7 /glistmodel/store/splice-replace-all 1201s ok 8 /glistmodel/store/splice-noop 1201s ok 9 /glistmodel/store/splice-remove-multiple 1201s ok 10 /glistmodel/store/splice-add-multiple 1201s ok 11 /glistmodel/store/splice-wrong-type 1201s ok 12 /glistmodel/store/item-type 1201s ok 13 /glistmodel/store/remove-all 1201s ok 14 /glistmodel/store/sort 1201s ok 15 /glistmodel/store/get-item-cache 1201s ok 16 /glistmodel/store/items-changed 1201s ok 17 /glistmodel/store/past-end 1201s ok 18 /glistmodel/store/find 1201s # End of store tests 1201s # End of glistmodel tests 1201s ok - glib/glistmodel.test 1201s # Running test: glib/gdbus-proxy-well-known-name.test 1201s TAP version 14 1201s # random seed: R02Saf7756ae1dd92f55bff4a6db92b3dcfa 1201s 1..1 1201s # Start of gdbus tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_WA1352/gdbus/proxy-well-known-name/.dirs/runtime 1201s ok - glib/gdbus-proxy-well-known-name.test 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 1 /gdbus/proxy-well-known-name 1201s # End of gdbus tests 1201s # Running test: glib/power-profile-monitor-portal.test 1202s TAP version 13 1202s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1202s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1202s 1..2 1202s ok - glib/power-profile-monitor-portal.test 1202s # Running test: glib/cxx-03.test 1202s TAP version 14 1202s # random seed: R02S59404a680cf25c760941c304a1006c10 1202s 1..2 1202s # Start of gtask tests 1202s # 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. 1202s ok 1 /gtask/name 1202s # Start of name tests 1202s # 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. 1202s ok 2 /gtask/name/macro-wrapper 1202s # End of name tests 1202s # End of gtask tests 1202s ok - glib/cxx-03.test 1202s # Running test: glib/unix.test 1202s TAP version 14 1202s # random seed: R02S19985f358e6631cbab37ed7e8a4fd9cd 1202s 1..20 1202s # Start of glib-unix tests 1202s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1202s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1202s ok 1 /glib-unix/closefrom 1202s ok 2 /glib-unix/pipe 1202s # /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 1202s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1202s ok 3 /glib-unix/pipe-stdio-overwrite 1202s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1202s ok 4 /glib-unix/pipe-struct 1202s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1202s ok 5 /glib-unix/pipe-struct-auto 1202s ok 6 /glib-unix/error 1202s ok 7 /glib-unix/nonblocking 1203s ok 8 /glib-unix/sighup 1203s # slow test /glib-unix/sighup executed in 0.50 secs 1203s ok 9 /glib-unix/sigterm 1203s # slow test /glib-unix/sigterm executed in 0.50 secs 1204s ok 10 /glib-unix/sighup_again 1204s # slow test /glib-unix/sighup_again executed in 0.50 secs 1204s ok 11 /glib-unix/sighup_add_remove 1204s ok 12 /glib-unix/sighup_nested 1204s # Executing: glib/unix.test 1206s ok 13 /glib-unix/callback_after_signal 1206s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1206s ok 14 /glib-unix/child-wait 1206s # Start of closefrom tests 1206s # Start of subprocess tests 1206s # End of subprocess tests 1206s # End of closefrom tests 1206s # Start of pipe tests 1206s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1206s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1206s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1206s ok 15 /glib-unix/pipe/fd-cloexec 1206s # End of pipe tests 1206s # Start of sighup tests 1207s ok 16 /glib-unix/sighup/alternate-stack 1207s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1207s # End of sighup tests 1207s # Start of sigterm tests 1208s ok 17 /glib-unix/sigterm/alternate-stack 1208s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1208s # End of sigterm tests 1208s # Start of sighup_again tests 1209s ok 18 /glib-unix/sighup_again/alternate-stack 1209s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1209s # End of sighup_again tests 1209s # Start of get-passwd-entry tests 1209s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1209s ok 19 /glib-unix/get-passwd-entry/root 1209s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1209s ok 20 /glib-unix/get-passwd-entry/nonexistent 1209s # End of get-passwd-entry tests 1209s # End of glib-unix tests 1209s ok - glib/unix.test 1209s # Running test: glib/basic-signals.test 1209s TAP version 14 1209s # random seed: R02Sebd816cd3848ff340a9cc05439fb5693 1209s 1..1 1209s # Start of gobject tests 1209s ok 1 /gobject/basic-signals 1209s # End of gobject tests 1209s ok - glib/basic-signals.test 1209s # Running test: glib/memory-monitor-dbus.test 1209s TAP version 13 1209s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1209s 1..1 1209s ok - glib/memory-monitor-dbus.test 1209s # Running test: glib/bitlock.test 1209s ok - glib/bitlock.test 1209s TAP version 14 1209s # random seed: R02Sea687fca8983941fdd9d6c305406a238 1209s 1..1 1209s # Start of bitlock tests 1209s # Start of performance tests 1209s # max perf: iterations per second 1209s ok 1 /bitlock/performance/uncontended 1209s # End of performance tests 1209s # End of bitlock tests 1209s # Running test: glib/defaultvalue.test 1209s TAP version 14 1209s # random seed: R02S404afe2d7c70bae58b8ce904cf11f25d 1209s 1..84 1209s # Start of Default Values tests 1209s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1209s ok 2 /Default Values/GAppLaunchContext 1209s ok 3 /Default Values/GApplicationCommandLine 1209s # skipping GApplication:is-remote 1209s ok 4 /Default Values/GApplication 1209s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1209s ok 6 /Default Values/GBindingGroup 1209s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1209s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1209s ok 9 /Default Values/GBytesIcon 1209s ok 10 /Default Values/GCancellable 1209s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1209s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1209s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1209s ok 14 /Default Values/GCredentials 1209s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1209s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1209s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1209s ok 18 /Default Values/GDBusAuthObserver 1209s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1209s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1209s ok 21 /Default Values/GDBusMessage 1209s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1209s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1209s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1209s ok 25 /Default Values/GDBusObjectProxy 1209s ok 26 /Default Values/GDBusObjectSkeleton 1209s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1209s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1209s ok 29 /Default Values/GEmblem 1209s ok 30 /Default Values/GEmblemedIcon 1209s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1209s ok 32 /Default Values/GFileInfo 1209s ok 33 /Default Values/GFileInputStream 1209s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1209s ok 35 /Default Values/GFileOutputStream 1209s ok 36 /Default Values/GFilenameCompleter 1209s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1209s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1209s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1209s ok 40 /Default Values/GInitiallyUnowned 1209s ok 41 /Default Values/GIOModule 1209s ok 42 /Default Values/GListStore 1209s ok 43 /Default Values/GMemoryInputStream 1209s ok 44 /Default Values/GMemoryOutputStream 1209s ok 45 /Default Values/GMenu 1209s ok 46 /Default Values/GMenuItem 1209s ok 47 /Default Values/GMountOperation 1209s ok 48 /Default Values/GNativeSocketAddress 1209s ok 49 /Default Values/GNetworkAddress 1209s ok 50 /Default Values/GNetworkService 1209s ok 51 /Default Values/GNotification 1209s ok 52 /Default Values/GObject 1209s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1209s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1209s # skipping GProxyAddressEnumerator:proxy-resolver 1209s ok 54 /Default Values/GProxyAddressEnumerator 1209s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1209s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1209s ok 57 /Default Values/GSignalGroup 1209s ok 58 /Default Values/GSimpleAction 1209s ok 59 /Default Values/GSimpleActionGroup 1209s ok 60 /Default Values/GSimpleAsyncResult 1209s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1209s ok 62 /Default Values/GSimplePermission 1209s ok 63 /Default Values/GSimpleProxyResolver 1209s # skipping GSocketClient:proxy-resolver 1209s ok 64 /Default Values/GSocketClient 1209s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1209s ok 66 /Default Values/GSocket # SKIP initialization failed 1209s ok 67 /Default Values/GSocketListener 1209s ok 68 /Default Values/GSocketService 1209s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1209s ok 70 /Default Values/GSubprocessLauncher 1209s # GLib-GIO-DEBUG: GTask 0xd8248c0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1209s ok 71 /Default Values/GTask 1209s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1209s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1209s ok 74 /Default Values/GTestDBus 1209s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1209s ok 76 /Default Values/GThreadedSocketService 1209s ok 77 /Default Values/GTlsInteraction 1209s ok 78 /Default Values/GTlsPassword 1209s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1209s ok 80 /Default Values/GUnixFDList 1209s ok 81 /Default Values/GVfs 1209s ok 82 /Default Values/GVolumeMonitor 1209s ok 83 /Default Values/GZlibCompressor 1209s ok 84 /Default Values/GZlibDecompressor 1209s # End of Default Values tests 1209s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1209s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1209s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1209s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1209s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1209s ok - glib/defaultvalue.test 1209s # Running test: glib/gutils-user-database.test 1209s TAP version 14 1209s # random seed: R02S256280422c60ee2129065b4363823c3d 1209s 1..1 1209s # Start of gutils tests 1209s ok 1 /gutils/get_user_database_entry 1209s # End of gutils tests 1209s ok - glib/gutils-user-database.test 1209s # Running test: glib/simple-async-result.test 1209s TAP version 14 1209s ok - glib/simple-async-result.test 1209s # Running test: glib/utils-c-17.test 1209s # random seed: R02Sff589030715496ad46829e722df69344 1209s 1..2 1209s # Start of gio tests 1209s # Start of simple-async-result tests 1209s ok 1 /gio/simple-async-result/test 1209s # GLib-GIO-DEBUG: GTask 0x33b4fe0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1209s ok 2 /gio/simple-async-result/valid 1209s # End of simple-async-result tests 1209s # End of gio tests 1209s TAP version 14 1209s # random seed: R02Sa35b3bc563a22ddca16d010659ecb573 1209s 1..41 1209s # Start of utils tests 1209s ok 1 /utils/language-names 1209s ok 2 /utils/locale-variants 1209s ok 3 /utils/version 1209s ok 4 /utils/appname 1209s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1209s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1209s ok 5 /utils/prgname-thread-safety 1209s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1209s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1209s ok 6 /utils/tmpdir 1209s ok 7 /utils/basic_bits 1209s ok 8 /utils/bits 1209s ok 9 /utils/swap 1209s ok 10 /utils/find-program 1209s ok 11 /utils/find-program-for-path 1209s ok 12 /utils/debug 1209s ok 13 /utils/codeset 1209s ok 14 /utils/codeset2 1209s ok 15 /utils/console-charset 1209s ok 16 /utils/gettext 1209s ok 17 /utils/username 1209s ok 18 /utils/realname 1209s ok 19 /utils/hostname 1209s ok 20 /utils/xdgdirs 1209s ok 21 /utils/specialdir 1209s # NAME: Ubuntu 1209s ok 22 /utils/os-info 1209s ok 23 /utils/clear-pointer 1209s ok 24 /utils/clear-pointer-cast 1209s ok 25 /utils/take-pointer 1209s ok 26 /utils/clear-source 1209s ok 27 /utils/misc-mem 1209s # /utils/aligned-mem summary: Aligned memory allocator 1209s # Alignment must not be zero 1209s ok - glib/utils-c-17.test 1209s # Alignment must be a power of two 1209s # Alignment must be a multiple of sizeof(void*) 1209s ok 28 /utils/aligned-mem 1209s # /utils/free-sized summary: Check that g_free_sized() works 1209s ok 29 /utils/free-sized 1209s ok 30 /utils/nullify 1209s ok 31 /utils/atexit 1209s ok 32 /utils/check-setuid 1209s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1209s ok 33 /utils/int-limits 1209s ok 34 /utils/clear-list 1209s ok 35 /utils/clear-slist 1209s ok 36 /utils/steal-handle-id 1209s # Start of specialdir tests 1209s ok 37 /utils/specialdir/desktop 1209s # End of specialdir tests 1209s # Start of clear-pointer tests 1209s ok 38 /utils/clear-pointer/side-effects 1209s # End of clear-pointer tests 1209s # Start of aligned-mem tests 1209s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1209s ok 39 /utils/aligned-mem/alignment 1209s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1209s ok 40 /utils/aligned-mem/zeroed 1209s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1209s ok 41 /utils/aligned-mem/free-sized 1209s # Start of subprocess tests 1209s # End of subprocess tests 1209s # End of aligned-mem tests 1209s # End of utils tests 1209s # Running test: glib/pattern.test 1209s ok - glib/pattern.test 1209s TAP version 14 1209s # random seed: R02S7cd669a065297adb29412925b22f353b 1209s # Running test: glib/threadtests.test 1209s 1..90 1209s # Start of pattern tests 1209s # Start of compile tests 1209s ok 1 /pattern/compile/0 1209s ok 2 /pattern/compile/1 1209s ok 3 /pattern/compile/2 1209s ok 4 /pattern/compile/3 1209s ok 5 /pattern/compile/4 1209s ok 6 /pattern/compile/5 1209s ok 7 /pattern/compile/6 1209s ok 8 /pattern/compile/7 1209s ok 9 /pattern/compile/8 1209s ok 10 /pattern/compile/9 1209s ok 11 /pattern/compile/10 1209s ok 12 /pattern/compile/11 1209s ok 13 /pattern/compile/12 1209s ok 14 /pattern/compile/13 1209s # End of compile tests 1209s # Start of copy tests 1209s ok 15 /pattern/copy/0 1209s ok 16 /pattern/copy/1 1209s ok 17 /pattern/copy/2 1209s ok 18 /pattern/copy/3 1209s ok 19 /pattern/copy/4 1209s ok 20 /pattern/copy/5 1209s ok 21 /pattern/copy/6 1209s ok 22 /pattern/copy/7 1209s ok 23 /pattern/copy/8 1209s ok 24 /pattern/copy/9 1209s ok 25 /pattern/copy/10 1209s ok 26 /pattern/copy/11 1209s ok 27 /pattern/copy/12 1209s ok 28 /pattern/copy/13 1209s # End of copy tests 1209s # Start of match tests 1209s ok 29 /pattern/match/0 1209s ok 30 /pattern/match/1 1209s ok 31 /pattern/match/2 1209s ok 32 /pattern/match/3 1209s ok 33 /pattern/match/4 1209s ok 34 /pattern/match/5 1209s ok 35 /pattern/match/6 1209s ok 36 /pattern/match/7 1209s ok 37 /pattern/match/8 1209s ok 38 /pattern/match/9 1209s ok 39 /pattern/match/10 1209s ok 40 /pattern/match/11 1209s ok 41 /pattern/match/12 1209s ok 42 /pattern/match/13 1209s ok 43 /pattern/match/14 1209s ok 44 /pattern/match/15 1209s ok 45 /pattern/match/16 1209s ok 46 /pattern/match/17 1209s ok 47 /pattern/match/18 1209s ok 48 /pattern/match/19 1209s ok 49 /pattern/match/20 1209s ok 50 /pattern/match/21 1209s ok 51 /pattern/match/22 1209s ok 52 /pattern/match/23 1209s ok 53 /pattern/match/24 1209s ok 54 /pattern/match/25 1209s ok 55 /pattern/match/26 1209s ok 56 /pattern/match/27 1209s ok 57 /pattern/match/28 1209s ok 58 /pattern/match/29 1209s ok 59 /pattern/match/30 1209s ok 60 /pattern/match/31 1209s ok 61 /pattern/match/32 1209s ok 62 /pattern/match/33 1209s ok 63 /pattern/match/34 1209s ok 64 /pattern/match/35 1209s ok 65 /pattern/match/36 1209s ok 66 /pattern/match/37 1209s ok 67 /pattern/match/38 1209s ok 68 /pattern/match/39 1209s ok 69 /pattern/match/40 1209s ok 70 /pattern/match/41 1209s ok 71 /pattern/match/42 1209s ok 72 /pattern/match/43 1209s ok 73 /pattern/match/44 1209s ok 74 /pattern/match/45 1209s ok 75 /pattern/match/46 1209s ok 76 /pattern/match/47 1209s ok 77 /pattern/match/48 1209s ok 78 /pattern/match/49 1209s ok 79 /pattern/match/50 1209s # End of match tests 1209s # Start of equal tests 1209s ok 80 /pattern/equal/0 1209s ok 81 /pattern/equal/1 1209s ok 82 /pattern/equal/2 1209s ok 83 /pattern/equal/3 1209s ok 84 /pattern/equal/4 1209s ok 85 /pattern/equal/5 1209s ok 86 /pattern/equal/6 1209s ok 87 /pattern/equal/7 1209s ok 88 /pattern/equal/8 1209s ok 89 /pattern/equal/9 1209s ok 90 /pattern/equal/10 1209s # End of equal tests 1209s # End of pattern tests 1209s TAP version 14 1209s # random seed: R02S601e6ababbdf427ed39f5b301677ec3a 1209s 1..5 1209s # Start of GObject tests 1209s ok 1 /GObject/threaded-object-init 1209s # Executing: glib/threadtests.test 1211s ok - glib/threadtests.test 1211s # Running test: glib/utf8-validate.test 1211s ok 2 /GObject/threaded-weak-ref 1211s # slow test /GObject/threaded-weak-ref executed in 1.82 secs 1211s ok 3 /GObject/threaded-toggle-notify # SKIP Not reliable on 32-bit ARM 1211s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1211s # Start of threaded-weak-ref tests 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1211s # /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. 1211s ok 5 /GObject/threaded-weak-ref/on-finalization 1211s # End of threaded-weak-ref tests 1211s # End of GObject tests 1211s TAP version 14 1211s # random seed: R02S2b139bdef2b6181362240f16e98ac4d7 1211s 1..238 1211s # Start of utf8 tests 1211s # Vector 0 1211s # Vector 1 1211s # Vector 2 1211s # Vector 3 1211s # Vector 4 1211s # Vector 5 1211s # Vector 6 1211s # Vector 7 1211s # Vector 8 1211s # Vector 9 1211s # Vector 10 1211s # Vector 11 1211s # Vector 12 1211s # Vector 13 1211s # Vector 14 1211s # Vector 15 1211s # Vector 16 1211s # Vector 17 1211s # Vector 18 1211s # Vector 19 1211s # Vector 20 1211s # Vector 21 1211s # Vector 22 1211s # Vector 23 1211s # Vector 24 1211s # Vector 25 1211s # Vector 26 1211s # Vector 27 1211s ok 1 /utf8/get-char-validated 1211s # Start of validate tests 1211s ok 2 /utf8/validate/0 1211s ok 3 /utf8/validate/1 1211s ok 4 /utf8/validate/2 1211s ok 5 /utf8/validate/3 1211s ok 6 /utf8/validate/4 1211s ok 7 /utf8/validate/5 1211s ok 8 /utf8/validate/6 1211s ok 9 /utf8/validate/7 1211s ok 10 /utf8/validate/8 1211s ok 11 /utf8/validate/9 1211s ok 12 /utf8/validate/10 1211s ok 13 /utf8/validate/11 1211s ok 14 /utf8/validate/12 1211s ok 15 /utf8/validate/13 1211s ok 16 /utf8/validate/14 1211s ok 17 /utf8/validate/15 1211s ok 18 /utf8/validate/16 1211s ok 19 /utf8/validate/17 1211s ok 20 /utf8/validate/18 1211s ok 21 /utf8/validate/19 1211s ok 22 /utf8/validate/20 1211s ok 23 /utf8/validate/21 1211s ok 24 /utf8/validate/22 1211s ok 25 /utf8/validate/23 1211s ok 26 /utf8/validate/24 1211s ok 27 /utf8/validate/25 1211s ok 28 /utf8/validate/26 1211s ok 29 /utf8/validate/27 1211s ok 30 /utf8/validate/28 1211s ok 31 /utf8/validate/29 1211s ok 32 /utf8/validate/30 1211s ok 33 /utf8/validate/31 1211s ok 34 /utf8/validate/32 1211s ok 35 /utf8/validate/33 1211s ok 36 /utf8/validate/34 1211s ok 37 /utf8/validate/35 1211s ok 38 /utf8/validate/36 1211s ok 39 /utf8/validate/37 1211s ok 40 /utf8/validate/38 1211s ok 41 /utf8/validate/39 1211s ok 42 /utf8/validate/40 1211s ok 43 /utf8/validate/41 1211s ok 44 /utf8/validate/42 1211s ok 45 /utf8/validate/43 1211s ok 46 /utf8/validate/44 1211s ok 47 /utf8/validate/45 1211s ok 48 /utf8/validate/46 1211s ok 49 /utf8/validate/47 1211s ok 50 /utf8/validate/48 1211s ok 51 /utf8/validate/49 1211s ok 52 /utf8/validate/50 1211s ok 53 /utf8/validate/51 1211s ok 54 /utf8/validate/52 1211s ok 55 /utf8/validate/53 1211s ok 56 /utf8/validate/54 1211s ok 57 /utf8/validate/55 1211s ok 58 /utf8/validate/56 1211s ok 59 /utf8/validate/57 1211s ok 60 /utf8/validate/58 1211s ok 61 /utf8/validate/59 1211s ok 62 /utf8/validate/60 1211s ok 63 /utf8/validate/61 1211s ok 64 /utf8/validate/62 1211s ok 65 /utf8/validate/63 1211s ok 66 /utf8/validate/64 1211s ok 67 /utf8/validate/65 1211s ok 68 /utf8/validate/66 1211s ok 69 /utf8/validate/67 1211s ok 70 /utf8/validate/68 1211s ok 71 /utf8/validate/69 1211s ok 72 /utf8/validate/70 1211s ok 73 /utf8/validate/71 1211s ok 74 /utf8/validate/72 1211s ok 75 /utf8/validate/73 1211s ok 76 /utf8/validate/74 1211s ok 77 /utf8/validate/75 1211s ok 78 /utf8/validate/76 1211s ok 79 /utf8/validate/77 1211s ok 80 /utf8/validate/78 1211s ok 81 /utf8/validate/79 1211s ok 82 /utf8/validate/80 1211s ok 83 /utf8/validate/81 1211s ok 84 /utf8/validate/82 1211s ok 85 /utf8/validate/83 1211s ok 86 /utf8/validate/84 1211s ok 87 /utf8/validate/85 1211s ok 88 /utf8/validate/86 1211s ok 89 /utf8/validate/87 1211s ok 90 /utf8/validate/88 1211s ok 91 /utf8/validate/89 1211s ok 92 /utf8/validate/90 1211s ok 93 /utf8/validate/91 1211s ok 94 /utf8/validate/92 1211s ok 95 /utf8/validate/93 1211s ok 96 /utf8/validate/94 1211s ok 97 /utf8/validate/95 1211s ok 98 /utf8/validate/96 1211s ok 99 /utf8/validate/97 1211s ok 100 /utf8/validate/98 1211s ok 101 /utf8/validate/99 1211s ok 102 /utf8/validate/100 1211s ok 103 /utf8/validate/101 1211s ok 104 /utf8/validate/102 1211s ok 105 /utf8/validate/103 1211s ok 106 /utf8/validate/104 1211s ok 107 /utf8/validate/105 1211s ok 108 /utf8/validate/106 1211s ok 109 /utf8/validate/107 1211s ok 110 /utf8/validate/108 1211s ok 111 /utf8/validate/109 1211s ok 112 /utf8/validate/110 1211s ok 113 /utf8/validate/111 1211s ok 114 /utf8/validate/112 1211s ok 115 /utf8/validate/113 1211s ok 116 /utf8/validate/114 1211s ok 117 /utf8/validate/115 1211s ok 118 /utf8/validate/116 1211s ok 119 /utf8/validate/117 1211s ok 120 /utf8/validate/118 1211s ok 121 /utf8/validate/119 1211s ok 122 /utf8/validate/120 1211s ok 123 /utf8/validate/121 1211s ok 124 /utf8/validate/122 1211s ok 125 /utf8/validate/123 1211s ok 126 /utf8/validate/124 1211s ok 127 /utf8/validate/125 1211s ok 128 /utf8/validate/126 1211s ok 129 /utf8/validate/127 1211s ok 130 /utf8/validate/128 1211s ok 131 /utf8/validate/129 1211s ok 132 /utf8/validate/130 1211s ok 133 /utf8/validate/131 1211s ok 134 /utf8/validate/132 1211s ok - glib/utf8-validate.test 1211s # Running test: glib/qdata.test 1211s ok 135 /utf8/validate/133 1211s ok 136 /utf8/validate/134 1211s ok 137 /utf8/validate/135 1211s ok 138 /utf8/validate/136 1211s ok 139 /utf8/validate/137 1211s ok 140 /utf8/validate/138 1211s ok 141 /utf8/validate/139 1211s ok 142 /utf8/validate/140 1211s ok 143 /utf8/validate/141 1211s ok 144 /utf8/validate/142 1211s ok 145 /utf8/validate/143 1211s ok 146 /utf8/validate/144 1211s ok 147 /utf8/validate/145 1211s ok 148 /utf8/validate/146 1211s ok 149 /utf8/validate/147 1211s ok 150 /utf8/validate/148 1211s ok 151 /utf8/validate/149 1211s ok 152 /utf8/validate/150 1211s ok 153 /utf8/validate/151 1211s ok 154 /utf8/validate/152 1211s ok 155 /utf8/validate/153 1211s ok 156 /utf8/validate/154 1211s ok 157 /utf8/validate/155 1211s ok 158 /utf8/validate/156 1211s ok 159 /utf8/validate/157 1211s ok 160 /utf8/validate/158 1211s ok 161 /utf8/validate/159 1211s ok 162 /utf8/validate/160 1211s ok 163 /utf8/validate/161 1211s ok 164 /utf8/validate/162 1211s ok 165 /utf8/validate/163 1211s ok 166 /utf8/validate/164 1211s ok 167 /utf8/validate/165 1211s ok 168 /utf8/validate/166 1211s ok 169 /utf8/validate/167 1211s ok 170 /utf8/validate/168 1211s ok 171 /utf8/validate/169 1211s ok 172 /utf8/validate/170 1211s ok 173 /utf8/validate/171 1211s ok 174 /utf8/validate/172 1211s ok 175 /utf8/validate/173 1211s ok 176 /utf8/validate/174 1211s ok 177 /utf8/validate/175 1211s ok 178 /utf8/validate/176 1211s ok 179 /utf8/validate/177 1211s ok 180 /utf8/validate/178 1211s ok 181 /utf8/validate/179 1211s ok 182 /utf8/validate/180 1211s ok 183 /utf8/validate/181 1211s ok 184 /utf8/validate/182 1211s ok 185 /utf8/validate/183 1211s ok 186 /utf8/validate/184 1211s ok 187 /utf8/validate/185 1211s ok 188 /utf8/validate/186 1211s ok 189 /utf8/validate/187 1211s ok 190 /utf8/validate/188 1211s ok 191 /utf8/validate/189 1211s ok 192 /utf8/validate/190 1211s ok 193 /utf8/validate/191 1211s ok 194 /utf8/validate/192 1211s ok 195 /utf8/validate/193 1211s ok 196 /utf8/validate/194 1211s ok 197 /utf8/validate/195 1211s ok 198 /utf8/validate/196 1211s ok 199 /utf8/validate/197 1211s ok 200 /utf8/validate/198 1211s ok 201 /utf8/validate/199 1211s ok 202 /utf8/validate/200 1211s ok 203 /utf8/validate/201 1211s ok 204 /utf8/validate/202 1211s ok 205 /utf8/validate/203 1211s ok 206 /utf8/validate/204 1211s ok 207 /utf8/validate/205 1211s ok 208 /utf8/validate/206 1211s ok 209 /utf8/validate/207 1211s ok 210 /utf8/validate/208 1211s ok 211 /utf8/validate/209 1211s ok 212 /utf8/validate/210 1211s ok 213 /utf8/validate/211 1211s ok 214 /utf8/validate/212 1211s ok 215 /utf8/validate/213 1211s ok 216 /utf8/validate/214 1211s ok 217 /utf8/validate/215 1211s ok 218 /utf8/validate/216 1211s ok 219 /utf8/validate/217 1211s ok 220 /utf8/validate/218 1211s ok 221 /utf8/validate/219 1211s ok 222 /utf8/validate/220 1211s ok 223 /utf8/validate/221 1211s ok 224 /utf8/validate/222 1211s ok 225 /utf8/validate/223 1211s ok 226 /utf8/validate/224 1211s ok 227 /utf8/validate/225 1211s ok 228 /utf8/validate/226 1211s ok 229 /utf8/validate/227 1211s ok 230 /utf8/validate/228 1211s ok 231 /utf8/validate/229 1211s ok 232 /utf8/validate/230 1211s ok 233 /utf8/validate/231 1211s ok 234 /utf8/validate/232 1211s ok 235 /utf8/validate/233 1211s ok 236 /utf8/validate/234 1211s ok 237 /utf8/validate/235 1211s ok 238 /utf8/validate/236 1211s # End of validate tests 1211s # End of utf8 tests 1211s TAP version 14 1211s # random seed: R02S995608b8af31dccea84f3f2a713976d3 1211s 1..2 1211s # Start of qdata tests 1211s ok - glib/qdata.test 1211s ok 1 /qdata/threaded 1211s ok 2 /qdata/dup 1211s # End of qdata tests 1211s # Running test: glib/markup-subparser.test 1211s ok - glib/markup-subparser.test 1211s # Running test: glib/notify-init.test 1211s TAP version 14 1211s # random seed: R02Sa3d2bbcf92de4b6a5cdd55353fd5e59e 1211s 1..14 1211s # Start of glib tests 1211s # Start of markup tests 1211s # Start of subparser tests 1211s # Start of success tests 1211s ok 1 /glib/markup/subparser/success/0 1211s ok 2 /glib/markup/subparser/success/1 1211s ok 3 /glib/markup/subparser/success/2 1211s ok 4 /glib/markup/subparser/success/3 1211s ok 5 /glib/markup/subparser/success/4 1211s ok 6 /glib/markup/subparser/success/5 1211s ok 7 /glib/markup/subparser/success/6 1211s # End of success tests 1211s # Start of failure tests 1211s ok 8 /glib/markup/subparser/failure/0 1211s ok 9 /glib/markup/subparser/failure/1 1211s ok 10 /glib/markup/subparser/failure/2 1211s ok 11 /glib/markup/subparser/failure/3 1211s ok 12 /glib/markup/subparser/failure/4 1211s ok 13 /glib/markup/subparser/failure/5 1211s ok 14 /glib/markup/subparser/failure/6 1211s # End of failure tests 1211s # End of subparser tests 1211s # End of markup tests 1211s # End of glib tests 1211s TAP version 14 1211s # random seed: R02S90d451b54c4f7c922eda2f6bcd1d222d 1211s 1..1 1211s # Start of properties tests 1211s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1211s ok 1 /properties/notify-in-init 1211s # End of properties tests 1211s ok - glib/notify-init.test 1211s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1211s TAP version 14 1211s # random seed: R02Scdf28229c1f667bd688be9f13e66e98d 1211s 1..8 1211s # Start of gdbus tests 1211s # Start of codegen tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/annotations/.dirs/runtime 1211s ok 1 /gdbus/codegen/annotations 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/interface_stability/.dirs/runtime 1211s ok 2 /gdbus/codegen/interface_stability 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/object-manager/.dirs/runtime 1211s ok 3 /gdbus/codegen/object-manager 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/property-naming/.dirs/runtime 1211s ok 4 /gdbus/codegen/property-naming 1211s ok - glib/gdbus-test-codegen-min-required-2-64.test 1211s # Running test: glib/pathbuf.test 1211s ok - glib/pathbuf.test 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/autocleanups/.dirs/runtime 1211s ok 5 /gdbus/codegen/autocleanups 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/deprecations/.dirs/runtime 1211s ok 6 /gdbus/codegen/deprecations 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/standalone-interface-info/.dirs/runtime 1211s ok 7 /gdbus/codegen/standalone-interface-info 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_J3KT52/gdbus/codegen/unix-fd-list/.dirs/runtime 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1211s ok 8 /gdbus/codegen/unix-fd-list 1211s # End of codegen tests 1211s # End of gdbus tests 1211s # Running test: glib/filter-streams.test 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s TAP version 14 1211s # random seed: R02S2fa056891d1608db8f136134f6bd467f 1211s 1..3 1211s # Start of pathbuf tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_G3V852/pathbuf/init/.dirs/runtime 1211s # Initializing empty path buf 1211s # Initializing with empty path 1211s # Initializing with full path 1211s # Initializing with no path 1211s # Allocating GPathBuf on the heap 1211s ok 1 /pathbuf/init 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_G3V852/pathbuf/push-pop/.dirs/runtime 1211s # Pushing relative path component 1211s # Pushing absolute path component 1211s # Popping a path component 1211s # Can't pop the last element of a path buffer 1211s ok 2 /pathbuf/push-pop 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_G3V852/pathbuf/filename-extension/.dirs/runtime 1211s ok 3 /pathbuf/filename-extension 1211s # End of pathbuf tests 1211s TAP version 14 1211s # random seed: R02Sa90d298d0fef20fcc4a57d2f514ea534 1211s 1..4 1211s # Start of filter-stream tests 1211s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 1211s ok 1 /filter-stream/input 1211s ok 2 /filter-stream/output 1211s ok - glib/filter-streams.test 1211s ok 3 /filter-stream/async-input 1211s ok 4 /filter-stream/async-output 1211s # End of filter-stream tests 1211s # Running test: glib/array-test.test 1211s TAP version 14 1211s # random seed: R02Sbfa4bf2d0f22b8bcf8db70e2874e88d3 1211s 1..113 1211s # Start of array tests 1211s ok 1 /array/ref-count 1211s ok 2 /array/steal 1211s ok 3 /array/clear-func 1211s ok 4 /array/binary-search 1211s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 1211s ok 5 /array/copy-sized 1211s ok 6 /array/overflow-append-vals 1211s ok 7 /array/overflow-set-size 1211s # Start of new tests 1211s ok 8 /array/new/zero-terminated 1211s ok 9 /array/new/take 1211s ok 10 /array/new/take-zero-terminated 1211s # Start of take tests 1211s ok 11 /array/new/take/empty 1211s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1211s # End of take tests 1211s # End of new tests 1211s # Start of set-size tests 1211s ok 13 /array/set-size/non-zero-terminated-no-clear 1211s ok 14 /array/set-size/non-zero-terminated-clear 1211s ok 15 /array/set-size/zero-terminated-no-clear 1211s ok 16 /array/set-size/zero-terminated-clear 1211s # Start of sized tests 1211s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 1211s ok 18 /array/set-size/sized/non-zero-terminated-clear 1211s ok 19 /array/set-size/sized/zero-terminated-no-clear 1211s ok 20 /array/set-size/sized/zero-terminated-clear 1211s # End of sized tests 1211s # End of set-size tests 1211s # Start of append-val tests 1211s ok 21 /array/append-val/non-zero-terminated-no-clear 1211s ok 22 /array/append-val/non-zero-terminated-clear 1211s ok 23 /array/append-val/zero-terminated-no-clear 1211s ok 24 /array/append-val/zero-terminated-clear 1211s # End of append-val tests 1211s # Start of prepend-val tests 1211s ok 25 /array/prepend-val/non-zero-terminated-no-clear 1211s ok 26 /array/prepend-val/non-zero-terminated-clear 1211s ok 27 /array/prepend-val/zero-terminated-no-clear 1211s ok 28 /array/prepend-val/zero-terminated-clear 1211s # End of prepend-val tests 1211s # Start of prepend-vals tests 1211s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 1211s ok 30 /array/prepend-vals/non-zero-terminated-clear 1211s ok 31 /array/prepend-vals/zero-terminated-no-clear 1211s ok 32 /array/prepend-vals/zero-terminated-clear 1211s # End of prepend-vals tests 1211s # Start of insert-vals tests 1211s ok 33 /array/insert-vals/non-zero-terminated-no-clear 1211s ok 34 /array/insert-vals/non-zero-terminated-clear 1211s ok 35 /array/insert-vals/zero-terminated-no-clear 1211s ok 36 /array/insert-vals/zero-terminated-clear 1211s # End of insert-vals tests 1211s # Start of remove-index tests 1211s ok 37 /array/remove-index/non-zero-terminated-no-clear 1211s ok 38 /array/remove-index/non-zero-terminated-clear 1211s ok 39 /array/remove-index/zero-terminated-no-clear 1211s ok 40 /array/remove-index/zero-terminated-clear 1211s # End of remove-index tests 1211s # Start of remove-index-fast tests 1211s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 1211s ok 42 /array/remove-index-fast/non-zero-terminated-clear 1211s ok 43 /array/remove-index-fast/zero-terminated-no-clear 1211s ok 44 /array/remove-index-fast/zero-terminated-clear 1211s # End of remove-index-fast tests 1211s # Start of remove-range tests 1211s ok 45 /array/remove-range/non-zero-terminated-no-clear 1211s ok 46 /array/remove-range/non-zero-terminated-clear 1211s ok 47 /array/remove-range/zero-terminated-no-clear 1211s ok 48 /array/remove-range/zero-terminated-clear 1211s # End of remove-range tests 1211s # Start of copy tests 1211s ok 49 /array/copy/non-zero-terminated-no-clear 1211s ok 50 /array/copy/non-zero-terminated-clear 1211s ok 51 /array/copy/zero-terminated-no-clear 1211s ok 52 /array/copy/zero-terminated-clear 1211s # End of copy tests 1211s # Start of sort tests 1211s ok 53 /array/sort/non-zero-terminated-no-clear 1211s ok 54 /array/sort/non-zero-terminated-clear 1211s ok 55 /array/sort/zero-terminated-no-clear 1211s ok 56 /array/sort/zero-terminated-clear 1211s # End of sort tests 1211s # Start of sort-with-data tests 1211s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 1211s ok 58 /array/sort-with-data/non-zero-terminated-clear 1211s ok 59 /array/sort-with-data/zero-terminated-no-clear 1211s ok 60 /array/sort-with-data/zero-terminated-clear 1211s # End of sort-with-data tests 1211s # End of array tests 1211s # Start of pointerarray tests 1211s ok 61 /pointerarray/add 1211s ok 62 /pointerarray/insert 1211s ok 63 /pointerarray/new-take 1211s ok 64 /pointerarray/new-take-null-terminated 1211s ok 65 /pointerarray/new-from-array 1211s ok 66 /pointerarray/new-from-null-terminated-array 1211s ok 67 /pointerarray/free-func 1211s ok 68 /pointerarray/array_extend_and_steal 1211s ok 69 /pointerarray/sort 1211s ok 70 /pointerarray/sort-with-data 1211s ok 71 /pointerarray/sort-values 1211s ok 72 /pointerarray/sort-values-with-data 1211s ok 73 /pointerarray/remove-range 1211s ok 74 /pointerarray/steal 1211s # Start of free tests 1211s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1211s ok 75 /pointerarray/free/null-terminated 1211s # End of free tests 1211s # Start of new-take tests 1211s ok 76 /pointerarray/new-take/empty 1211s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1211s ok 78 /pointerarray/new-take/with-free-func 1211s # End of new-take tests 1211s # Start of new-take-null-terminated tests 1211s ok 79 /pointerarray/new-take-null-terminated/empty 1211s ok 80 /pointerarray/new-take-null-terminated/with-free-func 1211s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 1211s # End of new-take-null-terminated tests 1211s # Start of new-from-array tests 1211s ok 82 /pointerarray/new-from-array/empty 1211s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1211s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 1211s # End of new-from-array tests 1211s # Start of new-from-null-terminated-array tests 1211s ok 85 /pointerarray/new-from-null-terminated-array/empty 1211s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1211s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 1211s # End of new-from-null-terminated-array tests 1211s # Start of ref-count tests 1211s ok 88 /pointerarray/ref-count/not-null-terminated 1211s ok 89 /pointerarray/ref-count/null-terminated 1211s # End of ref-count tests 1211s # Start of array_copy tests 1211s # /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 1211s ok 90 /pointerarray/array_copy/not-null-terminated 1211s # /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 1211s ok 91 /pointerarray/array_copy/null-terminated 1211s # End of array_copy tests 1211s # Start of array_extend tests 1211s ok 92 /pointerarray/array_extend/not-null-terminated 1211s ok 93 /pointerarray/array_extend/null-terminated 1211s # End of array_extend tests 1211s # Start of sort tests 1211s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1211s ok 94 /pointerarray/sort/example 1211s # End of sort tests 1211s # Start of sort-with-data tests 1211s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1211s ok 95 /pointerarray/sort-with-data/example 1211s # End of sort-with-data tests 1211s # Start of sort-values tests 1211s ok 96 /pointerarray/sort-values/example 1211s # End of sort-values tests 1211s # Start of sort-values-with-data tests 1211s ok 97 /pointerarray/sort-values-with-data/example 1211s # End of sort-values-with-data tests 1211s # Start of find tests 1211s ok 98 /pointerarray/find/empty 1211s ok 99 /pointerarray/find/non-empty 1211s # End of find tests 1211s # Start of steal_index tests 1211s ok 100 /pointerarray/steal_index/not-null-terminated 1211s ok 101 /pointerarray/steal_index/null-terminated 1211s # End of steal_index tests 1211s # End of pointerarray tests 1211s # Start of bytearray tests 1211s ok 102 /bytearray/steal 1211s ok 103 /bytearray/append 1211s ok - glib/array-test.test 1211s # Running test: glib/dir.test 1211s ok - glib/dir.test 1211s ok 104 /bytearray/prepend 1211s ok 105 /bytearray/remove 1211s ok 106 /bytearray/remove-fast 1211s ok 107 /bytearray/remove-range 1211s ok 108 /bytearray/ref-count 1211s ok 109 /bytearray/sort 1211s ok 110 /bytearray/sort-with-data 1211s ok 111 /bytearray/new-take 1211s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 1211s ok 113 /bytearray/free-to-bytes 1211s # End of bytearray tests 1211s TAP version 14 1211s # random seed: R02Sa590432b18720130f8c57fa92a9925a4 1211s 1..3 1211s # Start of dir tests 1211s ok 1 /dir/read 1211s ok 2 /dir/nonexisting 1211s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1211s ok 3 /dir/refcounting 1211s # End of dir tests 1211s # Running test: glib/closure.test 1211s TAP version 14 1211s # random seed: R02S3781c0220e12380709ccabaf1982a736 1211s 1..6 1211s # Start of closure tests 1211s ok 1 /closure/idle 1211s ok 2 /closure/timeout 1211s ok 3 /closure/iochannel 1211s ok 4 /closure/child 1211s ok 5 /closure/fd 1211s ok 6 /closure/signal 1211s # End of closure tests 1211s ok - glib/closure.test 1211s # Running test: glib/simple-proxy.test 1211s ok - glib/simple-proxy.test 1211s # Running test: glib/collate.test 1211s TAP version 14 1211s # random seed: R02S0e96961b814643bf0c9fb54dd0ca0f15 1211s 1..3 1211s # Start of static-proxy tests 1211s ok 1 /static-proxy/uri 1211s ok 2 /static-proxy/socks 1211s ok 3 /static-proxy/ignore 1211s # End of static-proxy tests 1211s ok - glib/collate.test 1211s # Running test: glib/bytes.test 1211s TAP version 14 1211s # random seed: R02S43824bb3ca2a2a9fb3f81ca37d0a45ed 1211s 1..9 1211s # Start of unicode tests 1211s # Start of collate tests 1211s ok 1 /unicode/collate/0 1211s ok 2 /unicode/collate/1 1211s ok 3 /unicode/collate/2 1211s # End of collate tests 1211s # Start of collate-key tests 1211s ok 4 /unicode/collate-key/0 1211s ok 5 /unicode/collate-key/1 1211s ok 6 /unicode/collate-key/2 1211s # End of collate-key tests 1211s # Start of collate-filename tests 1211s ok 7 /unicode/collate-filename/0 1211s ok 8 /unicode/collate-filename/1 1211s ok 9 /unicode/collate-filename/2 1211s # End of collate-filename tests 1211s # End of unicode tests 1211s ok - glib/bytes.test 1211s # Running test: glib/tls-certificate.test 1211s TAP version 14 1211s # random seed: R02S46b6e6b69176f576b7b7d1eefa804eda 1211s 1..21 1211s # Start of bytes tests 1211s ok 1 /bytes/new 1211s ok 2 /bytes/new-take 1211s ok 3 /bytes/new-static 1211s ok 4 /bytes/new-with-free-func 1211s ok 5 /bytes/new-from-bytes 1211s ok 6 /bytes/new-from-bytes-slice 1211s ok 7 /bytes/new-from-bytes-shared-ref 1211s ok 8 /bytes/hash 1211s ok 9 /bytes/equal 1211s ok 10 /bytes/compare 1211s ok 11 /bytes/null 1211s ok 12 /bytes/get-region 1211s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1211s ok 13 /bytes/unref-null 1211s # Start of to-data tests 1211s ok 14 /bytes/to-data/transferred 1211s ok 15 /bytes/to-data/two-refs 1211s ok 16 /bytes/to-data/non-malloc 1211s ok 17 /bytes/to-data/different-free-func 1211s # End of to-data tests 1211s # Start of to-array tests 1211s ok 18 /bytes/to-array/transferred 1211s ok 19 /bytes/to-array/two-refs 1211s ok 20 /bytes/to-array/non-malloc 1211s # Start of transferred tests 1211s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1211s ok 21 /bytes/to-array/transferred/oversize # SKIP Skipping test as guint is not smaller than gsize 1211s # End of transferred tests 1211s # End of to-array tests 1211s # End of bytes tests 1211s TAP version 14 1211s # random seed: R02S00e9f472b919a8ad4576fc6a0775d962 1211s 1..19 1211s # Start of tls-certificate tests 1211s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1211s ok 1 /tls-certificate/pem-parser 1211s ok 2 /tls-certificate/pem-parser-handles-chain 1211s ok 3 /tls-certificate/from_file 1211s ok 4 /tls-certificate/from_files 1211s ok 5 /tls-certificate/from_files_crlf 1211s ok 6 /tls-certificate/from_files_pkcs8 1211s ok 7 /tls-certificate/from_files_pkcs8enc 1211s ok 8 /tls-certificate/list_from_file 1211s ok 9 /tls-certificate/pkcs11-uri 1211s ok 10 /tls-certificate/pkcs11-uri-unsupported 1211s ok 11 /tls-certificate/from_pkcs12 1211s ok 12 /tls-certificate/from_pkcs12_file 1211s ok 13 /tls-certificate/not-valid-before 1211s ok 14 /tls-certificate/not-valid-after 1211s ok 15 /tls-certificate/subject-name 1211s ok 16 /tls-certificate/issuer-name 1211s ok 17 /tls-certificate/dns-names 1211s ok 18 /tls-certificate/ip-addresses 1211s ok 19 /tls-certificate/pem-parser-no-sentinel 1211s # End of tls-certificate tests 1211s ok - glib/tls-certificate.test 1211s # Running test: glib/rwlock.test 1211s TAP version 14 1211s # random seed: R02Se2d49c12531fb5db4c5351416adb8224 1211s 1..8 1211s # Start of thread tests 1211s ok 1 /thread/rwlock1 1211s ok 2 /thread/rwlock2 1211s ok 3 /thread/rwlock3 1211s ok 4 /thread/rwlock4 1211s ok 5 /thread/rwlock5 1211s ok 6 /thread/rwlock6 1214s ok 7 /thread/rwlock7 1214s # slow test /thread/rwlock7 executed in 3.00 secs 1214s # Executing: glib/rwlock.test 1214s ok 8 /thread/rwlock8 1214s # End of thread tests 1214s ok - glib/rwlock.test 1214s TAP version 14 1214s # random seed: R02Sb19a27d775d23f378b574f846bf300a7 1214s 1..2 1214s # Start of properties tests 1214s # Start of custom-dispatch tests 1214s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1214s ok 1 /properties/custom-dispatch/init 1214s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1214s ok 2 /properties/custom-dispatch/set 1214s # End of custom-dispatch tests 1214s # End of properties tests 1214s # Running test: glib/custom-dispatch.test 1214s ok - glib/custom-dispatch.test 1214s # Running test: glib/portal-support-snap.test 1214s TAP version 14 1214s # random seed: R02S574d49ea54e548693fb02eae0add41ff 1214s 1..7 1214s # Start of portal-support tests 1214s # Start of snap tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl/.dirs/runtime 1214s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/no-snapctl: No such file or directory 1215s ok 1 /portal-support/snap/no-snapctl 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/none/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/none: No such file or directory 1215s ok 2 /portal-support/snap/none 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/all/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/all: No such file or directory 1215s ok 3 /portal-support/snap/all 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/desktop-only: No such file or directory 1215s ok 4 /portal-support/snap/desktop-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/network-only: No such file or directory 1215s ok 5 /portal-support/snap/network-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/gsettings-only: No such file or directory 1215s ok 6 /portal-support/snap/gsettings-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_E1U652/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s ok - glib/portal-support-snap.test 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652/portal-support/snap/updates-dynamically: No such file or directory 1215s ok 7 /portal-support/snap/updates-dynamically 1215s # End of snap tests 1215s # End of portal-support tests 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_E1U652: No such file or directory 1215s # Running test: glib/gdbus-test-codegen.test 1215s TAP version 14 1215s # random seed: R02Se0208ef53a9362ae75fa2b8b7a7bc2d4 1215s 1..8 1215s # Start of gdbus tests 1215s # Start of codegen tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/annotations/.dirs/runtime 1215s ok 1 /gdbus/codegen/annotations 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/interface_stability/.dirs/runtime 1215s ok 2 /gdbus/codegen/interface_stability 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/object-manager/.dirs/runtime 1215s ok 3 /gdbus/codegen/object-manager 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/property-naming/.dirs/runtime 1215s ok 4 /gdbus/codegen/property-naming 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/autocleanups/.dirs/runtime 1215s ok 5 /gdbus/codegen/autocleanups 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/deprecations/.dirs/runtime 1215s ok 6 /gdbus/codegen/deprecations 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/standalone-interface-info/.dirs/runtime 1215s ok 7 /gdbus/codegen/standalone-interface-info 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6V9W52/gdbus/codegen/unix-fd-list/.dirs/runtime 1215s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1215s ok 8 /gdbus/codegen/unix-fd-list 1215s # End of codegen tests 1215s # End of gdbus tests 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s ok - glib/gdbus-test-codegen.test 1215s # Running test: glib/spawn-path-search.test 1215s TAP version 14 1215s # random seed: R02S9b91fc7a8d5939c3f2c07bcd9ce55c60 1215s 1..7 1215s # Start of spawn tests 1215s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1215s # 1215s # this is spawn-test-helper from glib/tests 1215s # 1215s ok 1 /spawn/do-not-search 1215s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1215s # 1215s # this is spawn-test-helper from path-test-subdir 1215s # 1215s ok 2 /spawn/search-path 1215s # /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. 1215s # 1215s # this is spawn-test-helper from path-test-subdir 1215s # 1215s ok 3 /spawn/search-path-from-envp 1215s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1215s # 1215s # this is spawn-test-helper from path-test-subdir 1215s # 1215s ok 4 /spawn/search-path-ambiguous 1215s # 1215s # this is spawn-test-helper from path-test-subdir 1215s # 1215s ok 5 /spawn/search-path-heap-allocation 1215s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1215s # 1215s # this is spawn-test-helper from glib/tests 1215s # 1215s ok 6 /spawn/search-path-fallback-in-environ 1215s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1215s ok - glib/spawn-path-search.test 1215s # Running test: glib/macros-c-11.test 1215s ok - glib/macros-c-11.test 1215s # Running test: glib/thread.test 1215s ok - glib/thread.test 1215s # 1215s # this is spawn-test-helper from glib/tests 1215s # 1215s ok 7 /spawn/search-path-fallback-in-envp 1215s # End of spawn tests 1215s TAP version 14 1215s # random seed: R02S2a6cb74a41a2e53d0d540cbfd5b62789 1215s 1..4 1215s # Start of C tests 1215s ok 1 /C/standard-11 1215s # End of C tests 1215s # Start of alignof tests 1215s ok 2 /alignof/fallback 1215s # End of alignof tests 1215s # Start of assert tests 1215s ok 3 /assert/static 1215s # End of assert tests 1215s # Start of struct tests 1215s ok 4 /struct/sizeof_member 1215s # End of struct tests 1215s TAP version 14 1215s # random seed: R02S435ddf937bad9c1e50f131acc3d342c1 1215s 1..7 1215s # Start of thread tests 1215s ok 1 /thread/thread1 1215s ok 2 /thread/thread2 1215s ok 3 /thread/thread3 1215s ok 4 /thread/thread4 1215s ok 5 /thread/thread5 1215s ok 6 /thread/thread6 1215s ok 7 /thread/thread7 1215s # End of thread tests 1215s TAP version 14 1215s # random seed: R02S66fbfbc024db11ffb239d53f89b6d996 1215s 1..2 1215s # Start of spawn tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_BXFS52/spawn/basics/.dirs/runtime 1215s # Running test: glib/spawn-test.test 1215s ok 1 /spawn/basics 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_BXFS52/spawn/stdio-overwrite/.dirs/runtime 1215s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1215s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1215s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1215s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1215s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1215s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1215s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1215s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1215s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1215s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1215s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1215s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1215s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1215s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1215s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1215s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1215s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1215s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1215s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1215s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1215s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1215s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1215s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1215s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1215s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1215s # Fetching GSpawn result with stdin open, stdout open, stderr open 1215s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1215s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1215s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1215s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1215s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1215s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1215s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1215s ok - glib/spawn-test.test 1215s ok 2 /spawn/stdio-overwrite 1215s # End of spawn tests 1215s # Running test: glib/hook.test 1215s TAP version 14 1215s # random seed: R02Sace8b70e0dd59e5b9254d1cecc1e5b24 1215s 1..2 1215s # Start of hook tests 1215s ok 1 /hook/basics 1215s ok 2 /hook/corner-cases 1215s # End of hook tests 1215s ok - glib/hook.test 1215s # Running test: glib/utf8-performance.test 1215s TAP version 14 1215s # random seed: R02S67dd3c1aaa5af0a8036f34f7c1d19102 1215s 1..36 1215s # Start of utf8 tests 1215s # Start of perf tests 1215s # Start of get_char tests 1215s # max perf: 6.1 MB/s 1215s ok 1 /utf8/perf/get_char/ascii 1215s # max perf: 67.0 MB/s 1215s ok 2 /utf8/perf/get_char/latin1 1215s # max perf: 160.0 MB/s 1215s ok 3 /utf8/perf/get_char/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 4 /utf8/perf/get_char/han 1215s # End of get_char tests 1215s # Start of get_char-backwards tests 1215s # max perf: 43.0 MB/s 1215s ok 5 /utf8/perf/get_char-backwards/ascii 1215s # max perf: 67.0 MB/s 1215s ok 6 /utf8/perf/get_char-backwards/latin1 1215s # max perf: 80.0 MB/s 1215s ok 7 /utf8/perf/get_char-backwards/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 8 /utf8/perf/get_char-backwards/han 1215s # End of get_char-backwards tests 1215s # Start of get_char_validated tests 1215s # max perf: inf MB/s 1215s ok 9 /utf8/perf/get_char_validated/ascii 1215s # max perf: 67.0 MB/s 1215s ok 10 /utf8/perf/get_char_validated/latin1 1215s # max perf: 160.0 MB/s 1215s ok 11 /utf8/perf/get_char_validated/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 12 /utf8/perf/get_char_validated/han 1215s # End of get_char_validated tests 1215s # Start of utf8_to_ucs4 tests 1215s # max perf: 43.0 MB/s 1215s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1215s # max perf: 67.0 MB/s 1215s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1215s # max perf: 160.0 MB/s 1215s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 16 /utf8/perf/utf8_to_ucs4/han 1215s # End of utf8_to_ucs4 tests 1215s # Start of utf8_to_ucs4-sized tests 1215s # max perf: inf MB/s 1215s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1215s # max perf: 67.0 MB/s 1215s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1215s # max perf: 80.0 MB/s 1215s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1215s # End of utf8_to_ucs4-sized tests 1215s # Start of utf8_to_ucs4_fast tests 1215s # max perf: 43.0 MB/s 1215s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1215s # max perf: 67.0 MB/s 1215s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1215s # max perf: 160.0 MB/s 1215s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1215s # max perf: inf MB/s 1215s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1215s # End of utf8_to_ucs4_fast tests 1215s # Start of utf8_to_ucs4_fast-sized tests 1215s # max perf: inf MB/s 1215s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1215s # max perf: 67.0 MB/s 1215s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1215s # max perf: 160.0 MB/s 1215s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1215s # max perf: inf MB/s 1215s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1215s # End of utf8_to_ucs4_fast-sized tests 1215s # Start of utf8_validate tests 1215s # max perf: inf MB/s 1215s ok 29 /utf8/perf/utf8_validate/ascii 1215s # max perf: inf MB/s 1215s ok 30 /utf8/perf/utf8_validate/latin1 1215s # max perf: 160.0 MB/s 1215s ok 31 /utf8/perf/utf8_validate/cyrillic 1215s # max perf: 156.0 MB/s 1215s ok 32 /utf8/perf/utf8_validate/han 1215s # End of utf8_validate tests 1215s # Start of utf8_validate-sized tests 1215s # max perf: inf MB/s 1215s ok 33 /utf8/perf/utf8_validate-sized/ascii 1215s # max perf: inf MB/s 1215s ok 34 /utf8/perf/utf8_validate-sized/latin1 1215s # max perf: inf MB/s 1215s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1215s # max perf: inf MB/s 1215s ok 36 /utf8/perf/utf8_validate-sized/han 1215s # End of utf8_validate-sized tests 1215s # End of perf tests 1215s # End of utf8 tests 1215s ok - glib/utf8-performance.test 1215s # Running test: glib/sleepy-stream.test 1215s TAP version 14 1215s # random seed: R02S35fb8318a00ad5f01aa7beb8d1f5ac57 1215s 1..2 1215s # Start of filter-stream tests 1215s ok 1 /filter-stream/input 1215s ok - glib/sleepy-stream.test 1215s ok 2 /filter-stream/async 1215s # End of filter-stream tests 1215s # Running test: glib/slice.test 1215s TAP version 14 1215s # random seed: R02Se7f6e9456925006557fba2a7728e0d96 1215s 1..3 1215s # Start of slice tests 1215s ok 1 /slice/copy 1215s ok 2 /slice/chain 1215s ok 3 /slice/allocate 1215s # End of slice tests 1215s ok - glib/slice.test 1215s # Running test: glib/1bit-mutex.test 1215s TAP version 14 1215s # random seed: R02S845c9b5145fce62b2d1f8550ea4edde0 1215s 1..2 1215s # Start of glib tests 1215s # Start of 1bit-mutex tests 1218s ok 1 /glib/1bit-mutex/int 1218s # slow test /glib/1bit-mutex/int executed in 2.69 secs 1219s # Executing: glib/1bit-mutex.test 1221s ok 2 /glib/1bit-mutex/pointer 1221s # slow test /glib/1bit-mutex/pointer executed in 2.93 secs 1221s # End of 1bit-mutex tests 1221s # End of glib tests 1221s TAP version 14 1221s # random seed: R02Sd4409664ff7cec6c44c90226b5a39c9c 1221s 1..2 1221s # Start of atomic tests 1221s ok 1 /atomic/types 1221s ok - glib/1bit-mutex.test 1221s # Running test: glib/atomic-c-89.test 1221s ok 2 /atomic/threaded 1221s # End of atomic tests 1221s TAP version 14 1221s # random seed: R02S27711963bf66b6d8073b888c6cb8a838 1221s 1..4 1221s # Start of scanner tests 1221s ok 1 /scanner/warn 1221s ok 2 /scanner/error 1221s ok 3 /scanner/symbols 1221s ok - glib/atomic-c-89.test 1221s # Running test: glib/scannerapi.test 1221s ok 4 /scanner/tokens 1221s # End of scanner tests 1221s TAP version 14 1221s # random seed: R02S5a5082d6474592117186351251ab7c10 1221s 1..1 1221s # Start of unicode tests 1221s ok - glib/scannerapi.test 1221s # Running test: glib/unicode-encoding.test 1221s ok 1 /unicode/encoding 1221s # End of unicode tests 1221s TAP version 14 1221s # random seed: R02S2eeda56138a8a8ce48872881753ea61d 1221s 1..21 1221s # Start of markup tests 1221s # Start of collect tests 1221s ok 1 /markup/collect/0 1221s ok 2 /markup/collect/1 1221s ok 3 /markup/collect/2 1221s ok 4 /markup/collect/3 1221s ok 5 /markup/collect/4 1221s ok 6 /markup/collect/5 1221s ok 7 /markup/collect/6 1221s ok 8 /markup/collect/7 1221s ok 9 /markup/collect/8 1221s ok 10 /markup/collect/9 1221s ok 11 /markup/collect/10 1221s ok 12 /markup/collect/11 1221s ok 13 /markup/collect/12 1221s ok 14 /markup/collect/13 1221s ok 15 /markup/collect/14 1221s ok 16 /markup/collect/15 1221s ok 17 /markup/collect/16 1221s ok 18 /markup/collect/17 1221s ok 19 /markup/collect/18 1221s ok 20 /markup/collect/19 1221s ok 21 /markup/collect/cleanup 1221s # End of collect tests 1221s # End of markup tests 1221s ok - glib/unicode-encoding.test 1221s # Running test: glib/markup-collect.test 1221s ok - glib/markup-collect.test 1221s # Running test: glib/dump.test 1221s ok - glib/dump.test 1221s # Running test: glib/network-monitor.test 1221s TAP version 14 1221s # random seed: R02S19a27af5c0c266bafbc21087473b718d 1221s 1..4 1221s # Start of dump tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_93G752/dump/empty-file/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_93G752/dump/empty-file/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_93G752/dump/empty-file/.dirs/system-config1:/tmp/test_dump_93G752/dump/empty-file/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_93G752/dump/empty-file/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_93G752/dump/empty-file/.dirs/system-data1:/tmp/test_dump_93G752/dump/empty-file/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_93G752/dump/empty-file/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_93G752/dump/empty-file/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_93G752/dump/empty-file/.dirs/runtime 1221s ok 1 /dump/empty-file 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_93G752/dump/missing-get-type/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_93G752/dump/missing-get-type/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_93G752/dump/missing-get-type/.dirs/runtime 1221s Invalid GType function: 'does_not_exist_get_type' 1221s ok 2 /dump/missing-get-type 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_93G752/dump/missing-quark/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_93G752/dump/missing-quark/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_93G752/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_93G752/dump/missing-quark/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_93G752/dump/missing-quark/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_93G752/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_93G752/dump/missing-quark/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_93G752/dump/missing-quark/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_93G752/dump/missing-quark/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_93G752/dump/missing-quark/.dirs/runtime 1221s Invalid error quark function: 'does_not_exist_error' 1221s ok 3 /dump/missing-quark 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_93G752/dump/basic/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_93G752/dump/basic/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_93G752/dump/basic/.dirs/system-config1:/tmp/test_dump_93G752/dump/basic/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_93G752/dump/basic/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_93G752/dump/basic/.dirs/system-data1:/tmp/test_dump_93G752/dump/basic/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_93G752/dump/basic/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_93G752/dump/basic/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_93G752/dump/basic/.dirs/runtime 1221s ok 4 /dump/basic 1221s # End of dump tests 1221s TAP version 14 1221s # random seed: R02Scf07186051d8af3557d58117fe86f098 1221s 1..4 1221s # Start of network-monitor tests 1221s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1221s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1221s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 1221s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1221s ok 1 /network-monitor/default 1221s ok 2 /network-monitor/remove_default 1221s ok 3 /network-monitor/add_networks 1221s ok 4 /network-monitor/remove_networks 1221s # End of network-monitor tests 1221s TAP version 14 1221s # random seed: R02Sba0e9e30af60560428ca7f42132b7d9e 1221s 1..11 1221s # Start of GObject tests 1221s # Start of BindingGroup tests 1221s ok 1 /GObject/BindingGroup/invalid 1221s ok 2 /GObject/BindingGroup/default 1221s ok 3 /GObject/BindingGroup/bidirectional 1221s ok 4 /GObject/BindingGroup/transform 1221s ok 5 /GObject/BindingGroup/transform-closures 1221s ok 6 /GObject/BindingGroup/same-object 1221s ok 7 /GObject/BindingGroup/weak-ref-source 1221s ok 8 /GObject/BindingGroup/weak-ref-target 1221s ok 9 /GObject/BindingGroup/properties 1221s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 1221s ok 11 /GObject/BindingGroup/empty-closures 1221s # End of BindingGroup tests 1221s # End of GObject tests 1221s TAP version 14 1221s # random seed: R02S85b054b80a2de3022b82ef0459dda6b4 1221s 1..3 1221s # Start of trash tests 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1221s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1221s # File: /tmp/test-trashXZ6B62 (parent st_dev: 93) 1221s # Home: /home/ubuntu (st_dev: 93) 1221s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1221s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1221s ok 3 /trash/long-filename 1221s # End of trash tests 1221s ok - glib/network-monitor.test 1221s # Running test: glib/bindinggroup.test 1221s ok - glib/bindinggroup.test 1221s # Running test: glib/trash.test 1221s ok - glib/trash.test 1221s # Running test: glib/union-info.test 1221s ok - glib/union-info.test 1221s # Running test: glib/thread-pool.test 1221s TAP version 14 1221s # random seed: R02S857007e81b7fc9d9acee0a46e6bed11f 1221s 1..2 1221s # Start of union-info tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/system-config1:/tmp/test_union-info_39ZB62/union-info/basic/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/system-data1:/tmp/test_union-info_39ZB62/union-info/basic/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_39ZB62/union-info/basic/.dirs/runtime 1221s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1221s # /union-info/basic summary: Test basic properties of GIUnionInfo 1221s ok 1 /union-info/basic 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/system-config1:/tmp/test_union-info_39ZB62/union-info/methods/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/system-data1:/tmp/test_union-info_39ZB62/union-info/methods/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_39ZB62/union-info/methods/.dirs/runtime 1221s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1221s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1221s ok 2 /union-info/methods 1221s # End of union-info tests 1221s TAP version 14 1221s # random seed: R02S5f94bda8cb1bfc4297dd5ab72978bf54 1221s 1..5 1221s # Start of thread_pool tests 1221s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1221s ok 1 /thread_pool/shared 1221s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1221s ok 2 /thread_pool/exclusive 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1221s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1221s ok 3 /thread_pool/create_shared_after_exclusive 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1221s ok 4 /thread_pool/create_full 1221s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1221s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1221s ok 5 /thread_pool/create_exclusive_after_shared 1221s # End of thread_pool tests 1221s ok - glib/thread-pool.test 1221s # Running test: glib/gobject-query.py.test 1221s TAP version 13 1221s ok 1 __main__.TestGobjectQuery.test_froots 1221s # gobject-query: /usr/bin/gobject-query 1221s # tmpdir: /tmp/tmp0loldhrd 1221s # Running: ['/usr/bin/gobject-query', 'froots'] 1221s # Return code: 0 1221s # Output: 1221s # ├void 1221s # ├GInterface 1221s # │ â””GTypePlugin 1221s # ├gchar 1221s # ├guchar 1221s # ├gboolean 1221s # ├gint 1221s # ├guint 1221s # ├glong 1221s # ├gulong 1221s # ├gint64 1221s # ├guint64 1221s # ├GEnum 1221s # ├GFlags 1221s # ├gfloat 1221s # ├gdouble 1221s # ├gchararray 1221s # ├gpointer 1221s # │ â””GType 1221s # ├GBoxed 1221s # │ â””GValueArray 1221s # ├GParam 1221s # │ ├GParamChar 1221s # │ ├GParamUChar 1221s # │ ├GParamBoolean 1221s # │ ├GParamInt 1221s # │ ├GParamUInt 1221s # │ ├GParamLong 1221s # │ ├GParamULong 1221s # │ ├GParamInt64 1221s # │ ├GParamUInt64 1221s # │ ├GParamUnichar 1221s # │ ├GParamEnum 1221s # │ ├GParamFlags 1221s # │ ├GParamFloat 1221s # │ ├GParamDouble 1221s # │ ├GParamString 1221s # │ ├GParamParam 1221s # │ ├GParamBoxed 1221s # │ ├GParamPointer 1221s # │ ├GParamValueArray 1221s # │ ├GParamObject 1221s # │ ├GParamOverride 1221s # │ ├GParamGType 1221s # │ â””GParamVariant 1221s # ├GObject 1221s # â””GVariant 1221s # Error: 1221s ok 2 __main__.TestGobjectQuery.test_help 1221s # gobject-query: /usr/bin/gobject-query 1221s # tmpdir: /tmp/tmpsw1x2vev 1221s # Running: ['/usr/bin/gobject-query', '--help'] 1221s # Return code: 0 1221s # Output: 1221s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1221s # -r specify root type 1221s # -n don't descend type tree 1221s # -h show help 1221s # -b specify indent string 1221s # -i specify incremental indent string 1221s # -s specify line spacing 1221s # qualifiers: 1221s # froots iterate over fundamental roots 1221s # tree print type tree 1221s # Error: 1221s ok 3 __main__.TestGobjectQuery.test_tree 1221s # gobject-query: /usr/bin/gobject-query 1221s # tmpdir: /tmp/tmplongv9d7 1221s # Running: ['/usr/bin/gobject-query', 'tree'] 1221s # Return code: 0 1221s # Output: 1221s # GObject 1221s # Error: 1221s ok 4 __main__.TestGobjectQuery.test_version 1221s # gobject-query: /usr/bin/gobject-query 1221s # tmpdir: /tmp/tmpj25xwxqe 1221s # Running: ['/usr/bin/gobject-query', '--version'] 1221s # Return code: 0 1221s # Output: 1221s # 2.84.1 1221s # Error: 1221s 1..4 1221s ok - glib/gobject-query.py.test 1221s # Running test: glib/atomic-c-99.test 1221s TAP version 14 1221s # random seed: R02S93fcdae6065909daad9ec3d9e2fe700a 1221s 1..2 1221s # Start of atomic tests 1221s ok 1 /atomic/types 1221s ok 2 /atomic/threaded 1221s # End of atomic tests 1221s ok - glib/atomic-c-99.test 1221s # Running test: glib/mutex.test 1221s TAP version 14 1221s # random seed: R02S56b9223b659de6296b94f296a42772df 1221s 1..17 1221s # Start of thread tests 1221s ok 1 /thread/mutex1 1221s ok 2 /thread/mutex2 1221s ok 3 /thread/mutex3 1221s ok 4 /thread/mutex4 1224s ok 5 /thread/mutex5 1224s # slow test /thread/mutex5 executed in 2.39 secs 1224s # Start of mutex tests 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1224s ok 6 /thread/mutex/errno 1224s # Start of perf tests 1224s # max perf: inf mips 1224s ok 7 /thread/mutex/perf/uncontended 1224s # Start of contended tests 1224s # max perf: inf mips 1224s ok 8 /thread/mutex/perf/contended/1 1224s # max perf: inf mips 1224s ok 9 /thread/mutex/perf/contended/2 1224s # max perf: 4.000000 mips 1224s ok 10 /thread/mutex/perf/contended/3 1224s # max perf: inf mips 1224s ok 11 /thread/mutex/perf/contended/4 1224s ok - glib/mutex.test 1224s # max perf: 3.000000 mips 1224s ok 12 /thread/mutex/perf/contended/5 1224s # max perf: 7.000000 mips 1224s ok 13 /thread/mutex/perf/contended/6 1224s # Running test: glib/signals-refcount4.test 1224s # max perf: 4.000000 mips 1224s ok 14 /thread/mutex/perf/contended/7 1224s # max perf: 1.500000 mips 1224s ok 15 /thread/mutex/perf/contended/8 1224s # max perf: 2.500000 mips 1224s ok 16 /thread/mutex/perf/contended/9 1224s # max perf: 0.250000 mips 1224s ok 17 /thread/mutex/perf/contended/10 1224s # End of contended tests 1224s # End of perf tests 1224s # End of mutex tests 1224s # End of thread tests 1224s TAP version 14 1224s # random seed: R02S953622821be85b32bfce7e322a3584fb 1224s 1..1 1224s # Start of gobject tests 1224s # Start of refcount tests 1224s # init 0xb3fe978 1224s # 1224s # init 0xb406a38 1224s # 1224s # Executing: glib/signals-refcount4.test 1229s # dispose 0xb3fe978! 1229s # 1229s # dispose 0xb406a38! 1229s # 1229s ok 1 /gobject/refcount/signals 1229s # slow test /gobject/refcount/signals executed in 5.00 secs 1229s # End of refcount tests 1229s # End of gobject tests 1229s ok - glib/signals-refcount4.test 1229s # Running test: glib/thread-deprecated.test 1229s TAP version 14 1229s # random seed: R02Sa943a4e6ac05621075adac854148c0ff 1229s 1..6 1229s # Start of thread tests 1229s ok 1 /thread/mutex 1229s # Executing: glib/thread-deprecated.test 1230s ok 2 /thread/static-rec-mutex 1234s ok 3 /thread/static-private 1234s # slow test /thread/static-private executed in 4.40 secs 1234s # Executing: glib/thread-deprecated.test 1239s ok 4 /thread/static-rw-lock 1239s # slow test /thread/static-rw-lock executed in 5.00 secs 1239s ok 5 /thread/once 1239s # Executing: glib/thread-deprecated.test 1244s # Executing: glib/thread-deprecated.test 1249s ok 6 /thread/rerun-all 1249s # slow test /thread/rerun-all executed in 10.03 secs 1249s # End of thread tests 1249s ok - glib/thread-deprecated.test 1249s # Running test: glib/dbus-appinfo.test 1249s TAP version 14 1249s # random seed: R02S3a2af066523d910c09aaad8eb9075314 1249s 1..7 1249s # Start of appinfo tests 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/runtime 1249s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1249s ok 1 /appinfo/dbusappinfo 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/runtime 1249s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Documents 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/config 1249s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1249s # fake-document-portal cancelled 1249s ok 2 /appinfo/flatpak-doc-export 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/runtime 1249s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Documents 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/config 1249s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1249s # fake-document-portal cancelled 1249s ok 3 /appinfo/flatpak-missing-doc-export 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/runtime 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Desktop 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/config 1249s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1249s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1249s # Response emitted 1249s # fake-desktop-portal cancelled 1249s ok 4 /appinfo/portal-open-file 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/runtime 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Desktop 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/config 1249s # Got open file request for http://example.com 1249s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1249s # Response emitted 1249s # fake-desktop-portal cancelled 1249s ok 5 /appinfo/portal-open-uri 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/runtime 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Desktop 1249s ok - glib/dbus-appinfo.test 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/config 1249s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1249s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio746446279 1249s # Response emitted 1249s # fake-desktop-portal cancelled 1249s ok 6 /appinfo/portal-open-file-async 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/runtime 1249s # Acquired a message bus connection 1249s # Acquired the name org.freedesktop.portal.Desktop 1249s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_THSB62/appinfo/portal-open-uri-async/.dirs/config 1249s # Got open file request for http://example.com 1249s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio470953411 1249s # Response emitted 1249s # fake-desktop-portal cancelled 1249s ok 7 /appinfo/portal-open-uri-async 1249s # End of appinfo tests 1249s # Running test: glib/option-argv0.test 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s TAP version 14 1249s # random seed: R02Se23c3ae6bb5648e4b23f33341a437b4a 1249s 1..1 1249s # Start of option tests 1249s ok - glib/option-argv0.test 1249s ok 1 /option/argv0 1249s # End of option tests 1249s # Running test: glib/live-g-file.test 1249s TAP version 14 1249s # random seed: R02S24e6f00c308fd3d776e1e125e68fafdc 1249s 1..13 1249s # Start of live-g-file tests 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/prep_clean_structure/.dirs/runtime 1249s # Cleaning target testing structure in '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1249s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1249s ok 1 /live-g-file/prep_clean_structure 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/create_structure/.dirs/runtime 1249s # 1249s # Going to create testing structure in '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1249s # Creating directory 'dir1'... 1249s # Creating directory 'dir1/subdir'... 1249s # Creating directory 'dir2'... 1249s # Creating directory 'dir-target'... 1249s # Creating directory 'dir_no-access'... 1249s # Creating directory 'dir_no-write'... 1249s # Creating file 'target-file'... 1249s # Creating file 'normal_file'... 1249s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1249s # Creating file 'executable_file'... 1249s # Creating file 'private_file'... 1249s # Creating file 'normal_file2'... 1249s # Creating file 'readonly_file'... 1249s # Creating file 'UTF_pr?i?lis? z'... 1249s # Creating directory 'dir_pr?i?lis? z'... 1249s # Creating symlink 'lost_symlink' --> 'nowhere'... 1249s # Creating directory 'dir_hidden'... 1249s # Creating file 'dir_hidden/.a-hidden-file'... 1249s # Creating file 'dir_hidden/file-in-.hidden1'... 1249s # Creating file 'dir_hidden/file-in-.hidden2'... 1249s # Creating pattern file... 1249s # Executing: glib/live-g-file.test 1249s # done. 1249s ok 2 /live-g-file/create_structure 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_initial_structure/.dirs/runtime 1249s # Testing sample structure in '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1249s # Testing file 'dir1'... 1249s # Testing file 'dir1/subdir'... 1249s # Testing file 'dir2'... 1249s # Testing file 'dir-target'... 1249s # Testing file 'dir_no-access'... 1249s # Testing file 'dir_no-write'... 1249s # Testing file 'target-file'... 1249s # Testing file 'normal_file'... 1249s # Testing file 'normal_file-symlink'... 1249s # Testing file 'executable_file'... 1249s # Testing file 'private_file'... 1249s # Testing file 'normal_file2'... 1249s # Testing file 'readonly_file'... 1249s # Testing file 'UTF_pr?i?lis? z'... 1249s # Testing file 'dir_pr?i?lis? z'... 1249s # Testing file 'lost_symlink'... 1249s # Testing file 'dir_hidden'... 1249s # Testing file 'dir_hidden/.a-hidden-file'... 1249s # Testing file 'dir_hidden/file-in-.hidden1'... 1249s # Testing file 'dir_hidden/file-in-.hidden2'... 1249s # Testing pattern file... 1249s # read 65536 bytes, total = 65536 of 65536. 1249s ok 3 /live-g-file/test_initial_structure 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_traverse_structure/.dirs/runtime 1249s # Traversing through the sample structure in '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1249s # Found file dir1, relative to root: dir1 1249s # Found file subdir, relative to root: dir1/subdir 1249s # Found file dir2, relative to root: dir2 1249s # Found file dir-target, relative to root: dir-target 1249s # Found file dir_no-access, relative to root: dir_no-access 1249s # Found file dir_no-write, relative to root: dir_no-write 1249s # Found file target-file, relative to root: target-file 1249s # Found file normal_file, relative to root: normal_file 1249s # Found file normal_file-symlink, relative to root: normal_file-symlink 1249s # Found file executable_file, relative to root: executable_file 1249s # Found file private_file, relative to root: private_file 1249s # Found file normal_file2, relative to root: normal_file2 1249s # Found file readonly_file, relative to root: readonly_file 1249s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 1249s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 1249s # Found file lost_symlink, relative to root: lost_symlink 1249s # Found file dir_hidden, relative to root: dir_hidden 1249s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1249s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1249s # Found file .hidden, relative to root: dir_hidden/.hidden 1249s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1249s # Found file pattern_file, relative to root: pattern_file 1249s ok 4 /live-g-file/test_traverse_structure 1250s ok - glib/live-g-file.test 1250s # Running test: glib/rand.test 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_enumerate/.dirs/runtime 1250s # Test enumerate '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1250s # Testing file 'dir_no-access' 1250s # Testing file 'normal_file' 1250s # Testing file 'normal_file-symlink' 1250s # Testing file 'not_exists' 1250s # Testing file 'not_exists' 1250s # Testing file 'not_exists2' 1250s # Testing file 'not_exists3' 1250s # Testing file 'not_exists4' 1250s # Testing file 'dir_no-execute/file' 1250s ok 5 /live-g-file/test_enumerate 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_open/.dirs/runtime 1250s # test_open: 'dir1' 1250s # test_open: 'dir_no-access' 1250s # test_open: 'target-file' 1250s # test_open: 'normal_file-symlink' 1250s # test_open: 'executable_file' 1250s # test_open: 'private_file' 1250s # test_open: 'readonly_file' 1250s # test_open: 'UTF_pr?i?lis? z' 1250s # test_open: 'pattern_file' 1250s # test_open: 'not_exists' 1250s # test_open: 'dir_no-execute/file' 1250s # test_open: 'lost_symlink' 1250s ok 6 /live-g-file/test_open 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_create/.dirs/runtime 1250s # test_create: 'dir1' 1250s # error code 3 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir1?: Is a directory 1250s # test_create: 'dir1/subdir' 1250s # error code 3 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir1/subdir?: Is a directory 1250s # test_create: 'dir2' 1250s # error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir2?: File exists 1250s # test_create: 'normal_file' 1250s # error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/normal_file?: File exists 1250s # test_create: 'executable_file' 1250s # test_create: 'private_file' 1250s # test_create: 'normal_file2' 1250s # test_create: 'UTF_pr?i?lis? z' 1250s # error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1250s # test_create: 'dir_pr?i?lis? z' 1250s # error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_pr?i?lis? z?: File exists 1250s # test_create: 'pattern_file' 1250s # test_create: 'not_exists2' 1250s # test_create: 'not_exists3' 1250s # test_create: 'not_exists4' 1250s ok 7 /live-g-file/test_create 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_copy_move/.dirs/runtime 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> '.' 1250s # res = 0, error code 2 = Target file exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> 'target-file' 1250s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir2' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> 'dir-target' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> '.' 1250s # res = 0, error code 2 = Target file exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> 'target-file' 1250s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/dir-target?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> 'not_exists' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> 'dir_no-access' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'dir-target' --> 'dir_no-write' 1250s # res = 0, error code 25 = Can?t recursively copy directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/target-file?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/target-file?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/target-file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'target-file' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/target-file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> '.' 1250s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/normal_file-symlink: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1250s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1250s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/executable_file?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/executable_file?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/executable_file?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'executable_file' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/private_file?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/private_file?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/private_file?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/private_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'private_file' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/private_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/normal_file2?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/normal_file2?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> '.' 1250s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/pattern_file?: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> 'target-file' 1250s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/pattern_file?: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> 'not_exists' 1250s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'dir-target' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> '.' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'target-file' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'not_exists' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'dir_no-access' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'dir_no-write' 1250s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists?: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'not_exists' --> 'dir-target' 1250s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> 'dir-target' 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> '.' 1250s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/lost_symlink: File exists 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> 'target-file' 1250s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/target-file/lost_symlink: Not a directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> 'not_exists' 1250s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1250s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1250s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1250s ok 8 /live-g-file/test_copy_move 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_delete/.dirs/runtime 1250s # Deleting dir1, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir1 1250s # result = 0, error = Error removing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir1: Directory not empty 1250s # Deleting dir2, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir2 1250s # result = 0, error = Error removing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir2: No such file or directory 1250s # Deleting executable_file, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/executable_file 1250s # result = 0, error = Error trashing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/executable_file: No such file or directory 1250s # Deleting readonly_file, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/readonly_file 1250s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_pr?i?lis? z 1250s # Deleting not_exists, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists 1250s # result = 0, error = Error removing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists: No such file or directory 1250s # Deleting not_exists, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists 1250s # result = 0, error = Error trashing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/not_exists: No such file or directory 1250s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-execute/file 1250s # result = 0, error = Error removing file /tmp/test_live-g-file_BLU352/testdir_live-g-file/dir_no-execute/file: No such file or directory 1250s # Deleting lost_symlink, path = /tmp/test_live-g-file_BLU352/testdir_live-g-file/lost_symlink 1250s ok 9 /live-g-file/test_delete 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_make_directory_with_parents/.dirs/runtime 1250s # We do not have CAP_DAC_OVERRIDE or equivalent 1250s ok 10 /live-g-file/test_make_directory_with_parents 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/final_clean/.dirs/runtime 1250s # Cleaning target testing structure in '/tmp/test_live-g-file_BLU352/testdir_live-g-file'... 1250s # deleting 'dir1' 1250s # deleting 'subdir' 1250s # deleting 'dir-target' 1250s # deleting 'dir2' 1250s # deleting 'target-file' 1250s # deleting 'normal_file-symlink' 1250s # deleting 'executable_file' 1250s # deleting 'private_file' 1250s # deleting 'normal_file2' 1250s # deleting 'UTF_pr?i?lis? z' 1250s # deleting 'pattern_file' 1250s # deleting 'lost_symlink' 1250s # deleting 'dir_no-access' 1250s # deleting 'dir_no-write' 1250s # deleting 'target-file' 1250s # deleting 'normal_file' 1250s # deleting 'normal_file-symlink' 1250s # deleting 'executable_file~' 1250s # deleting 'private_file' 1250s # deleting 'normal_file2~' 1250s # deleting 'UTF_pr?i?lis? z' 1250s # deleting 'dir_hidden' 1250s # deleting '.a-hidden-file' 1250s # deleting 'file-in-.hidden1' 1250s # deleting '.hidden' 1250s # deleting 'file-in-.hidden2' 1250s # deleting 'pattern_file' 1250s # deleting 'executable_file' 1250s # deleting 'normal_file2' 1250s # deleting 'not_exists2' 1250s # deleting 'not_exists3' 1250s # deleting 'not_exists4' 1250s # deleting 'a' 1250s ok 11 /live-g-file/final_clean 1250s # Start of test_unix_is_mountpoint tests 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1250s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1250s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1250s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BLU352/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1250s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1250s # End of test_unix_is_mountpoint tests 1250s # End of live-g-file tests 1250s TAP version 14 1250s # random seed: R02S7a01ea355dd97863aefed6ac0baab2c2 1250s 1..2 1250s # Start of rand tests 1250s ok - glib/rand.test 1250s ok 1 /rand/test-rand 1250s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1250s ok 2 /rand/double-range 1250s # End of rand tests 1250s # Running test: glib/socket-listener.test 1250s TAP version 14 1250s # random seed: R02Sc75e11ce67864f1ab435542766800548 1250s 1..1 1250s # Start of socket-listener tests 1250s ok 1 /socket-listener/event-signal 1250s # End of socket-listener tests 1250s ok - glib/socket-listener.test 1250s # Running test: glib/srvtarget.test 1250s TAP version 14 1250s # random seed: R02S00cd56f0983a36478196410a4d59fcb7 1250s 1..1 1250s # Start of srvtarget tests 1250s ok 1 /srvtarget/srv-target-ordering 1250s # slow test /srvtarget/srv-target-ordering executed in 0.60 secs 1250s # End of srvtarget tests 1250s ok - glib/srvtarget.test 1250s # Running test: glib/guuid.test 1250s TAP version 14 1250s # random seed: R02Sda9463e54515ac95caa08b7767b4e776 1250s 1..2 1250s # Start of uuid tests 1250s ok 1 /uuid/string 1250s ok 2 /uuid/random 1250s # End of uuid tests 1250s ok - glib/guuid.test 1250s # Running test: glib/gvariant.test 1250s TAP version 14 1250s # random seed: R02S728961e09775c38d0ee49c82b564eda3 1250s 1..69 1250s # Start of gvariant tests 1250s ok 1 /gvariant/type 1250s ok 2 /gvariant/typeinfo 1250s ok 3 /gvariant/string 1250s ok 4 /gvariant/utf8 1250s ok 5 /gvariant/utf8-new-strings 1251s ok 6 /gvariant/containers 1251s # slow test /gvariant/containers executed in 0.65 secs 1251s ok 7 /gvariant/format-strings 1251s ok 8 /gvariant/invalid-varargs 1251s ok 9 /gvariant/varargs 1251s ok 10 /gvariant/valist 1251s ok 11 /gvariant/builder-memory 1251s ok 12 /gvariant/hashing 1251s ok 13 /gvariant/byteswap 1252s ok 14 /gvariant/parser 1252s # slow test /gvariant/parser executed in 0.59 secs 1252s ok 15 /gvariant/parse-failures 1252s ok 16 /gvariant/parse-positional 1252s ok 17 /gvariant/floating 1252s ok 18 /gvariant/bytestring 1252s ok 19 /gvariant/lookup-value 1252s ok 20 /gvariant/lookup 1252s ok 21 /gvariant/compare 1252s ok 22 /gvariant/equal 1252s ok 23 /gvariant/fixed-array 1252s ok 24 /gvariant/check-format-string 1252s ok 25 /gvariant/checksum-basic 1252s ok 26 /gvariant/checksum-nested 1252s ok 27 /gvariant/gbytes 1252s ok 28 /gvariant/print-context 1252s ok 29 /gvariant/error-quark 1252s ok 30 /gvariant/stack-builder-init 1252s ok 31 /gvariant/stack-builder-init-static 1252s ok 32 /gvariant/stack-builder-init-unset 1252s ok 33 /gvariant/stack-dict-init 1252s ok 34 /gvariant/unaligned-construction 1252s # Start of type tests 1252s # Start of string-scan tests 1252s # Start of recursion tests 1252s ok 35 /gvariant/type/string-scan/recursion/tuple 1252s ok 36 /gvariant/type/string-scan/recursion/array 1252s # End of recursion tests 1252s # End of string-scan tests 1252s # End of type tests 1252s # Start of serialiser tests 1252s ok 37 /gvariant/serialiser/maybe 1252s ok 38 /gvariant/serialiser/array 1252s ok 39 /gvariant/serialiser/tuple 1252s ok 40 /gvariant/serialiser/variant 1252s ok 41 /gvariant/serialiser/strings 1253s ok 42 /gvariant/serialiser/byteswap 1253s # slow test /gvariant/serialiser/byteswap executed in 1.10 secs 1253s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1253s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1253s ok 43 /gvariant/serialiser/children 1253s # Start of byteswap tests 1253s ok 44 /gvariant/serialiser/byteswap/zero-sized 1253s # End of byteswap tests 1253s # Start of fuzz tests 1254s ok 45 /gvariant/serialiser/fuzz/1% 1254s # Executing: glib/gvariant.test 1255s ok 46 /gvariant/serialiser/fuzz/5% 1255s # slow test /gvariant/serialiser/fuzz/5% executed in 1.42 secs 1256s ok 47 /gvariant/serialiser/fuzz/9% 1256s # slow test /gvariant/serialiser/fuzz/9% executed in 0.88 secs 1257s ok 48 /gvariant/serialiser/fuzz/13% 1257s # slow test /gvariant/serialiser/fuzz/13% executed in 0.87 secs 1258s ok 49 /gvariant/serialiser/fuzz/17% 1258s # slow test /gvariant/serialiser/fuzz/17% executed in 1.30 secs 1258s # End of fuzz tests 1258s # End of serialiser tests 1258s # Start of utf8 tests 1258s # Start of subprocess tests 1258s # End of subprocess tests 1258s # End of utf8 tests 1258s # Start of varargs tests 1258s # Start of subprocess tests 1258s # End of subprocess tests 1258s # End of varargs tests 1258s # Start of byteswap tests 1258s # /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. 1258s ok 50 /gvariant/byteswap/non-normal-non-aligned 1258s # End of byteswap tests 1258s # Start of parser tests 1258s ok 51 /gvariant/parser/integer-bounds 1258s ok 52 /gvariant/parser/recursion 1258s # Start of recursion tests 1258s ok 53 /gvariant/parser/recursion/typedecls 1258s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1258s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1258s # Text form 0: @mmmu 5 1258s # Text form 1: @mmmas ['hello'] 1258s # Text form 2: @mmmu just just nothing 1258s # Text form 3: @mmmas just just nothing 1258s # Text form 4: @mmmu just nothing 1258s # Text form 5: @mmmas just nothing 1258s # Text form 6: @mmmu nothing 1258s # Text form 7: @mmmas nothing 1258s ok 54 /gvariant/parser/recursion/maybes 1258s # End of recursion tests 1258s # End of parser tests 1258s # Start of parse tests 1258s # Start of subprocess tests 1258s # End of subprocess tests 1258s # End of parse tests 1258s # Start of normal-checking tests 1258s ok 55 /gvariant/normal-checking/tuples 1258s ok 56 /gvariant/normal-checking/array-offsets 1258s ok 57 /gvariant/normal-checking/array-offsets2 1258s ok 58 /gvariant/normal-checking/tuple-offsets 1258s ok 59 /gvariant/normal-checking/tuple-offsets2 1258s ok 60 /gvariant/normal-checking/tuple-offsets3 1258s ok 61 /gvariant/normal-checking/tuple-offsets4 1258s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1258s ok 62 /gvariant/normal-checking/tuple-offsets5 1258s ok 63 /gvariant/normal-checking/empty-object-path 1258s # Start of array-offsets tests 1258s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1258s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1258s # End of array-offsets tests 1258s # Start of tuple-offsets tests 1258s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1258s # End of tuple-offsets tests 1258s # End of normal-checking tests 1258s # Start of recursion-limits tests 1258s ok 67 /gvariant/recursion-limits/variant-in-variant 1258s ok 68 /gvariant/recursion-limits/array-in-variant 1258s # End of recursion-limits tests 1258s # End of gvariant tests 1258s # Start of gvarianttype tests 1258s ok 69 /gvarianttype/hash 1258s # End of gvarianttype tests 1258s ok - glib/gvariant.test 1258s # Running test: glib/spawn-multithreaded.test 1258s TAP version 14 1258s # random seed: R02S3dd182e837f40c92db676ee9bfb6011b 1258s 1..4 1258s # Start of gthread tests 1259s # Child 9865 (ttl 1) exited, status 0 1259s # Executing: glib/spawn-multithreaded.test 1260s # Child 9866 (ttl 2) exited, status 0 1260s ok 1 /gthread/spawn-childs 1260s # slow test /gthread/spawn-childs executed in 2.00 secs 1260s # Created pid: 9871 (ttl 2) 1260s # Created pid: 9870 (ttl 1) 1261s # Child 9870 (ttl 1) exited, status 0 1262s # Child 9871 (ttl 2) exited, status 0 1262s ok 2 /gthread/spawn-childs-threads 1262s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1262s ok 3 /gthread/spawn-sync 1262s ok 4 /gthread/spawn-async 1262s # End of gthread tests 1262s ok - glib/spawn-multithreaded.test 1262s # Running test: glib/unicode.test 1262s TAP version 14 1262s # random seed: R02Se8bd31a1701624abeb8e9f89092ae702 1262s 1..39 1262s # Start of unicode tests 1262s ok 1 /unicode/alnum 1262s ok 2 /unicode/alpha 1262s ok 3 /unicode/break-type 1262s ok 4 /unicode/canonical-decomposition 1262s ok 5 /unicode/casefold 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s # Cannot set locale to lt_LT, skipping 1262s ok 6 /unicode/casemap_and_casefold 1262s ok 7 /unicode/cases 1262s ok 8 /unicode/character-type 1262s ok 9 /unicode/cntrl 1262s ok 10 /unicode/combining-class 1262s # Composing U+000041 and U+000042; expecting U+000000 1262s # Composing U+000041 and U+000000; expecting U+000000 1262s # Composing U+000066 and U+000069; expecting U+000000 1262s # Composing U+000308 and U+000301; expecting U+000000 1262s # Composing U+000f71 and U+000f72; expecting U+000000 1262s # Composing U+00212b and U+000000; expecting U+000000 1262s # Composing U+0000c5 and U+000000; expecting U+000000 1262s # Composing U+002126 and U+000000; expecting U+000000 1262s # Composing U+0003a9 and U+000000; expecting U+000000 1262s # Composing U+000041 and U+00030a; expecting U+0000c5 1262s # Composing U+00006f and U+000302; expecting U+0000f4 1262s # Composing U+001e63 and U+000307; expecting U+001e69 1262s # Composing U+000073 and U+000323; expecting U+001e63 1262s # Composing U+000064 and U+000307; expecting U+001e0b 1262s # Composing U+000064 and U+000323; expecting U+001e0d 1262s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1262s # Composing U+001111 and U+001171; expecting U+00d4cc 1262s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1262s # Composing U+00110e and U+001173; expecting U+00ce20 1262s # Composing U+001100 and U+001160; expecting U+000000 1262s # Composing U+001100 and U+001177; expecting U+000000 1262s # Composing U+00abff and U+0011b6; expecting U+000000 1262s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1262s # Composing U+00ac01 and U+0011b6; expecting U+000000 1262s # Composing U+00d4cc and U+0011a6; expecting U+000000 1262s # Composing U+00d4cc and U+0011c4; expecting U+000000 1262s # Composing U+01611e and U+01611e; expecting U+016121 1262s # Composing U+01611e and U+01611f; expecting U+016123 1262s # Composing U+0000f6 and U+000304; expecting U+00022b 1262s # Composing U+000b47 and U+000b57; expecting U+000b4c 1262s # Composing U+0000a0 and U+000b57; expecting U+000000 1262s # Composing U+016e00 and U+00030a; expecting U+000000 1262s # Composing U+00212b and U+016e00; expecting U+000000 1262s # Composing U+001e63 and U+000306; expecting U+000000 1262s # Composing U+001e63 and U+000304; expecting U+000000 1262s # Composing U+001e63 and U+000b57; expecting U+000000 1262s # Composing U+001e63 and U+000000; expecting U+000000 1262s # Composing U+001e63 and U+0113c2; expecting U+000000 1262s # Composing U+001f01 and U+0113c2; expecting U+000000 1262s # Composing U+00006e and U+000302; expecting U+000000 1262s # Composing U+001e63 and U+01611f; expecting U+000000 1262s # Composing U+01138e and U+0113b8; expecting U+000000 1262s # Composing U+01611e and U+000000; expecting U+000000 1262s # Composing U+000000 and U+01611f; expecting U+000000 1262s # Composing U+011390 and U+0113c2; expecting U+000000 1262s ok 11 /unicode/compose 1262s ok 12 /unicode/decompose 1262s ok 13 /unicode/decompose-tail 1262s ok 14 /unicode/defined 1262s ok 15 /unicode/digit 1262s ok 16 /unicode/digit-value 1262s # Fully decomposing U+000041; expecting 1 codepoints 1262s # Fully decomposing U+00fb01; expecting 1 codepoints 1262s # Fully decomposing U+00212b; expecting 2 codepoints 1262s # Fully decomposing U+002126; expecting 1 codepoints 1262s # Fully decomposing U+000344; expecting 2 codepoints 1262s # Fully decomposing U+000f73; expecting 2 codepoints 1262s # Fully decomposing U+0000c5; expecting 2 codepoints 1262s # Fully decomposing U+0000f4; expecting 2 codepoints 1262s # Fully decomposing U+001e69; expecting 3 codepoints 1262s # Fully decomposing U+001e63; expecting 2 codepoints 1262s # Fully decomposing U+001e0b; expecting 2 codepoints 1262s # Fully decomposing U+001e0d; expecting 2 codepoints 1262s # Fully decomposing U+00d4db; expecting 3 codepoints 1262s # Fully decomposing U+00d4cc; expecting 2 codepoints 1262s # Fully decomposing U+00ce31; expecting 3 codepoints 1262s # Fully decomposing U+00ce20; expecting 2 codepoints 1262s ok 17 /unicode/fully-decompose-canonical 1262s ok 18 /unicode/fully-decompose-len 1262s ok 19 /unicode/normalization 1262s ok 20 /unicode/graph 1262s # Testing script Zyyy (code 1517910393) 1262s # Testing script Zinh (code 1516858984) 1262s # Testing script Zmth (code 1517122664) 1262s # Testing script Arab (code 1098015074) 1262s # Testing script Armn (code 1098018158) 1262s # Testing script Beng (code 1113943655) 1262s # Testing script Bopo (code 1114599535) 1262s # Testing script Cher (code 1130915186) 1262s # Testing script Copt (code 1131376756) 1262s # Testing script Cyrl (code 1132032620) 1262s # Testing script Dsrt (code 1148416628) 1262s # Testing script Deva (code 1147500129) 1262s # Testing script Ethi (code 1165256809) 1262s # Testing script Geor (code 1197830002) 1262s # Testing script Goth (code 1198486632) 1262s # Testing script Grek (code 1198679403) 1262s # Testing script Gujr (code 1198877298) 1262s # Testing script Guru (code 1198879349) 1262s # Testing script Hani (code 1214344809) 1262s # Testing script Hang (code 1214344807) 1262s # Testing script Hebr (code 1214603890) 1262s # Testing script Hira (code 1214870113) 1262s # Testing script Knda (code 1265525857) 1262s # Testing script Kana (code 1264676449) 1262s # Testing script Khmr (code 1265134962) 1262s ok - glib/unicode.test 1262s # Running test: glib/resolver-parsing.test 1262s # Testing script Laoo (code 1281453935) 1262s # Testing script Latn (code 1281455214) 1262s # Testing script Mlym (code 1298954605) 1262s # Testing script Mong (code 1299148391) 1262s # Testing script Mymr (code 1299803506) 1262s # Testing script Ogam (code 1332175213) 1262s # Testing script Ital (code 1232363884) 1262s # Testing script Orya (code 1332902241) 1262s # Testing script Runr (code 1383427698) 1262s # Testing script Sinh (code 1399418472) 1262s # Testing script Syrc (code 1400468067) 1262s # Testing script Taml (code 1415671148) 1262s # Testing script Telu (code 1415933045) 1262s # Testing script Thaa (code 1416126817) 1262s # Testing script Thai (code 1416126825) 1262s # Testing script Tibt (code 1416192628) 1262s # Testing script Cans (code 1130458739) 1262s # Testing script Yiii (code 1500080489) 1262s # Testing script Tglg (code 1416064103) 1262s # Testing script Hano (code 1214344815) 1262s # Testing script Buhd (code 1114990692) 1262s # Testing script Tagb (code 1415669602) 1262s # Testing script Brai (code 1114792297) 1262s # Testing script Cprt (code 1131442804) 1262s # Testing script Limb (code 1281977698) 1262s # Testing script Osma (code 1332964705) 1262s # Testing script Shaw (code 1399349623) 1262s # Testing script Linb (code 1281977954) 1262s # Testing script Tale (code 1415670885) 1262s # Testing script Ugar (code 1432838514) 1262s # Testing script Talu (code 1415670901) 1262s # Testing script Bugi (code 1114990441) 1262s # Testing script Glag (code 1198285159) 1262s # Testing script Tfng (code 1415999079) 1262s # Testing script Sylo (code 1400466543) 1262s # Testing script Xpeo (code 1483761007) 1262s # Testing script Khar (code 1265131890) 1262s # Testing script Zzzz (code 1517976186) 1262s # Testing script Bali (code 1113681001) 1262s # Testing script Xsux (code 1483961720) 1262s # Testing script Phnx (code 1349021304) 1262s # Testing script Phag (code 1349017959) 1262s # Testing script Nkoo (code 1315663727) 1262s # Testing script Kali (code 1264675945) 1262s # Testing script Lepc (code 1281716323) 1262s # Testing script Rjng (code 1382706791) 1262s # Testing script Sund (code 1400204900) 1262s # Testing script Saur (code 1398895986) 1262s # Testing script Cham (code 1130914157) 1262s # Testing script Olck (code 1332503403) 1262s # Testing script Vaii (code 1449224553) 1262s # Testing script Cari (code 1130459753) 1262s # Testing script Lyci (code 1283023721) 1262s # Testing script Lydi (code 1283023977) 1262s # Testing script Avst (code 1098281844) 1262s # Testing script Bamu (code 1113681269) 1262s ok - glib/resolver-parsing.test 1262s # Running test: glib/macros-c-99.test 1262s ok - glib/macros-c-99.test 1262s # Testing script Egyp (code 1164409200) 1262s # Testing script Armi (code 1098018153) 1262s # Testing script Phli (code 1349020777) 1262s # Testing script Prti (code 1349678185) 1262s # Testing script Java (code 1247901281) 1262s # Testing script Kthi (code 1265920105) 1262s # Testing script Lisu (code 1281979253) 1262s # Testing script Mtei (code 1299473769) 1262s # Testing script Sarb (code 1398895202) 1262s # Testing script Orkh (code 1332898664) 1262s # Testing script Samr (code 1398893938) 1262s # Testing script Lana (code 1281453665) 1262s # Testing script Tavt (code 1415673460) 1262s # Testing script Batk (code 1113683051) 1262s # Testing script Brah (code 1114792296) 1262s # Testing script Mand (code 1298230884) 1262s # Testing script Cakm (code 1130457965) 1262s # Testing script Merc (code 1298494051) 1262s # Testing script Mero (code 1298494063) 1262s # Testing script Plrd (code 1349284452) 1262s # Testing script Shrd (code 1399353956) 1262s # Testing script Sora (code 1399812705) 1262s # Testing script Takr (code 1415670642) 1262s # Testing script Bass (code 1113682803) 1262s # Testing script Aghb (code 1097295970) 1262s # Testing script Dupl (code 1148547180) 1262s # Testing script Elba (code 1164730977) 1262s # Testing script Gran (code 1198678382) 1262s # Testing script Khoj (code 1265135466) 1262s # Testing script Sind (code 1399418468) 1262s # Testing script Lina (code 1281977953) 1262s # Testing script Mahj (code 1298229354) 1262s # Testing script Mani (code 1298230889) 1262s # Testing script Mend (code 1298493028) 1262s # Testing script Modi (code 1299145833) 1262s # Testing script Mroo (code 1299345263) 1262s # Testing script Nbat (code 1315070324) 1262s # Testing script Narb (code 1315009122) 1262s # Testing script Perm (code 1348825709) 1262s # Testing script Hmng (code 1215131239) 1262s # Testing script Palm (code 1348562029) 1262s # Testing script Pauc (code 1348564323) 1262s # Testing script Phlp (code 1349020784) 1262s # Testing script Sidd (code 1399415908) 1262s # Testing script Tirh (code 1416196712) 1262s # Testing script Wara (code 1466004065) 1262s # Testing script Ahom (code 1097363309) 1262s # Testing script Hluw (code 1215067511) 1262s # Testing script Hatr (code 1214346354) 1262s # Testing script Mult (code 1299541108) 1262s # Testing script Hung (code 1215655527) 1262s # Testing script Sgnw (code 1399287415) 1262s # Testing script Adlm (code 1097100397) 1262s # Testing script Bhks (code 1114139507) 1262s # Testing script Marc (code 1298231907) 1262s # Testing script Newa (code 1315272545) 1262s # Testing script Osge (code 1332963173) 1262s # Testing script Tang (code 1415671399) 1262s # Testing script Gonm (code 1198485101) 1262s # Testing script Nshu (code 1316186229) 1262s # Testing script Soyo (code 1399814511) 1262s # Testing script Zanb (code 1516334690) 1262s # Testing script Dogr (code 1148151666) 1262s # Testing script Gong (code 1198485095) 1262s # Testing script Rohg (code 1383032935) 1262s # Testing script Maka (code 1298230113) 1262s # Testing script Medf (code 1298490470) 1262s # Testing script Sogo (code 1399809903) 1262s # Testing script Sogd (code 1399809892) 1262s # Testing script Elym (code 1164736877) 1262s # Testing script Nand (code 1315008100) 1262s # Testing script Hmnp (code 1215131248) 1262s # Testing script Wcho (code 1466132591) 1262s # Testing script Chrs (code 1130918515) 1262s # Running test: glib/assert-msg-test.py.test 1262s # Testing script Diak (code 1147756907) 1262s # Testing script Kits (code 1265202291) 1262s # Testing script Yezi (code 1499822697) 1262s # Testing script Cpmn (code 1131441518) 1262s # Testing script Ougr (code 1333094258) 1262s # Testing script Tnsa (code 1416524641) 1262s # Testing script Toto (code 1416590447) 1262s # Testing script Vith (code 1449751656) 1262s # Testing script Kawi (code 1264678761) 1262s # Testing script Nagm (code 1315006317) 1262s # Testing script Todr (code 1416586354) 1262s # Testing script Gara (code 1197568609) 1262s # Testing script Tutg (code 1416983655) 1262s # Testing script Sunu (code 1400204917) 1262s # Testing script Gukh (code 1198877544) 1262s # Testing script Krai (code 1265787241) 1262s # Testing script Onao (code 1332633967) 1262s ok 21 /unicode/iso15924 1262s ok 22 /unicode/lower 1262s ok 23 /unicode/mark 1262s ok 24 /unicode/mirror 1262s ok 25 /unicode/print 1262s ok 26 /unicode/punctuation 1262s ok 27 /unicode/script 1262s ok 28 /unicode/space 1262s ok 29 /unicode/strdown 1262s ok 30 /unicode/strup 1262s ok 31 /unicode/turkish-strupdown 1262s ok 32 /unicode/title 1262s ok 33 /unicode/upper 1262s ok 34 /unicode/validate 1262s ok 35 /unicode/wide 1262s ok 36 /unicode/xdigit 1262s ok 37 /unicode/xdigit-value 1262s ok 38 /unicode/zero-width 1262s ok 39 /unicode/normalize 1262s # End of unicode tests 1262s TAP version 14 1262s # random seed: R02S98b29e88e00bab39aab27a3dd1992fc7 1262s 1..21 1262s # Start of gresolver tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/invalid-header/.dirs/runtime 1262s ok 1 /gresolver/invalid-header 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/record-ownership/.dirs/runtime 1262s ok 2 /gresolver/record-ownership 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/unknown-record-type/.dirs/runtime 1262s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1262s ok 3 /gresolver/unknown-record-type 1262s # Start of mx tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/mx/valid/.dirs/runtime 1262s ok 4 /gresolver/mx/valid 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/.dirs/runtime 1262s ok 5 /gresolver/mx/invalid 1262s # Start of invalid tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short/.dirs/runtime 1262s ok 6 /gresolver/mx/invalid/too-short 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/mx/invalid/too-short2/.dirs/runtime 1262s ok 7 /gresolver/mx/invalid/too-short2 1262s # End of invalid tests 1262s # End of mx tests 1262s # Start of ns tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/ns/valid/.dirs/runtime 1262s ok 8 /gresolver/ns/valid 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/ns/invalid/.dirs/runtime 1262s ok 9 /gresolver/ns/invalid 1262s # End of ns tests 1262s # Start of soa tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/soa/valid/.dirs/runtime 1262s ok 10 /gresolver/soa/valid 1262s # Start of invalid tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/mname/.dirs/runtime 1262s ok 11 /gresolver/soa/invalid/mname 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/rname/.dirs/runtime 1262s ok 12 /gresolver/soa/invalid/rname 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/soa/invalid/too-short/.dirs/runtime 1262s ok 13 /gresolver/soa/invalid/too-short 1262s # End of invalid tests 1262s # End of soa tests 1262s # Start of srv tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/srv/valid/.dirs/runtime 1262s ok 14 /gresolver/srv/valid 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/.dirs/runtime 1262s ok 15 /gresolver/srv/invalid 1262s # Start of invalid tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short/.dirs/runtime 1262s ok 16 /gresolver/srv/invalid/too-short 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/srv/invalid/too-short2/.dirs/runtime 1262s ok 17 /gresolver/srv/invalid/too-short2 1262s # End of invalid tests 1262s # End of srv tests 1262s # Start of txt tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/.dirs/runtime 1262s ok 18 /gresolver/txt/valid 1262s # Start of valid tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/txt/valid/multiple-strings/.dirs/runtime 1262s ok 19 /gresolver/txt/valid/multiple-strings 1262s # End of valid tests 1262s # Start of invalid tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/empty/.dirs/runtime 1262s ok 20 /gresolver/txt/invalid/empty 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_X9A952/gresolver/txt/invalid/overflow/.dirs/runtime 1262s ok 21 /gresolver/txt/invalid/overflow 1262s # End of invalid tests 1262s # End of txt tests 1262s # End of gresolver tests 1262s TAP version 14 1262s # random seed: R02S748666da5cf388419ba2260e95850c46 1262s 1..4 1262s # Start of C tests 1262s ok 1 /C/standard-99 1262s # End of C tests 1262s # Start of alignof tests 1262s ok 2 /alignof/fallback 1262s # End of alignof tests 1262s # Start of assert tests 1262s ok 3 /assert/static 1262s # End of assert tests 1262s # Start of struct tests 1262s ok 4 /struct/sizeof_member 1262s # End of struct tests 1262s TAP version 13 1262s ok 1 __main__.TestAssertMessage.test_gassert 1262s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1262s # tmpdir: /tmp/tmp8343xxum 1262s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1262s # Return code: -6 1262s # Output: 1262s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1262s # Error: 1262s # ** 1262s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1262s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1262s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1262s # tmpdir: /tmp/tmp49rxt0z5 1262s 1..2 1262s ok - glib/assert-msg-test.py.test 1262s # Running test: glib/gapplication.test 1262s TAP version 14 1262s # random seed: R02S8b96e0bce887e75f8602a04713ae91ef 1262s 1..24 1262s # Start of gapplication tests 1262s ok 1 /gapplication/no-dbus 1262s ok 2 /gapplication/no-appid 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s ok 3 /gapplication/properties 1262s ok 4 /gapplication/app-id 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s ok 5 /gapplication/quit 1262s ok 6 /gapplication/registered 1262s ok 7 /gapplication/local-actions 1262s ok 8 /gapplication/local-command-line 1262s ok 9 /gapplication/resource-path 1262s ok 10 /gapplication/test-help 1262s ok 11 /gapplication/command-line-done 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s ok 12 /gapplication/test-busy 1262s ok 13 /gapplication/test-handle-local-options1 1262s ok 14 /gapplication/test-handle-local-options2 1262s ok 15 /gapplication/test-handle-local-options3 1262s ok 16 /gapplication/api 1262s ok 17 /gapplication/version 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1262s # launching subprocess 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s ok 18 /gapplication/replace 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1262s # launching subprocess 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 19 /gapplication/no-replace 1263s # slow test /gapplication/no-replace executed in 0.51 secs 1263s # Start of dbus tests 1263s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1263s # Message 0 1263s # Message 1 1263s # Message 2 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 20 /gapplication/dbus/activate 1263s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1263s # Message 0 1263s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1263s # Message 1 1263s # Message 2 1263s # Message 3 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 21 /gapplication/dbus/open 1263s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1263s # Message 0 1263s # Message 1 1263s # Message 2 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 22 /gapplication/dbus/command-line 1263s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 23 /gapplication/dbus/command-line-done 1263s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1263s # Message 0 1263s # Message 1 1263s # Message 2 1263s # Message 3 1263s # Message 4 1263s # Message 5 1263s # Message 6 1263s # Message 7 1263s # Message 8 1263s # Message 9 1263s # Message 10 1263s # Message 11 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1263s ok 24 /gapplication/dbus/activate-action 1263s # End of dbus tests 1263s # End of gapplication tests 1263s ok - glib/gapplication.test 1263s # Running test: glib/mimeapps.test 1263s TAP version 14 1263s # random seed: R02Sc14b6a939d333ac35172f95ee6e2be4a 1263s 1..7 1263s # Start of appinfo tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1263s ok 1 /appinfo/all 1263s # Start of mime tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/all/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config 1263s ok 2 /appinfo/mime/api 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config 1263s ok 3 /appinfo/mime/default 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config 1263s ok 4 /appinfo/mime/file 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/config 1263s ok 5 /appinfo/mime/scheme-handler 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config 1263s ok 6 /appinfo/mime/default-last-used 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/runtime 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1263s # removing '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1263s # creating '/tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_BHQZ52/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_BHQZ52/appinfo/mime/ignore-nonexisting/.dirs/config 1263s ok 7 /appinfo/mime/ignore-nonexisting 1263s # End of mime tests 1263s # End of appinfo tests 1263s ok - glib/mimeapps.test 1263s # Running test: glib/file.test 1263s TAP version 14 1263s # random seed: R02Sb66be15b7b3b594a2be910e96594e741 1263s 1..55 1263s # Start of file tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/basic/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/basic/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/basic/.dirs/system-config1:/tmp/test_file_1ZTR52/file/basic/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/basic/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/basic/.dirs/system-data1:/tmp/test_file_1ZTR52/file/basic/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/basic/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/basic/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/basic/.dirs/runtime 1263s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1263s ok 1 /file/basic 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/build-filename/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/build-filename/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/build-filename/.dirs/system-config1:/tmp/test_file_1ZTR52/file/build-filename/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/build-filename/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/build-filename/.dirs/system-data1:/tmp/test_file_1ZTR52/file/build-filename/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/build-filename/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/build-filename/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/build-filename/.dirs/runtime 1263s ok 2 /file/build-filename 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/system-config1:/tmp/test_file_1ZTR52/file/build-filenamev/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/system-data1:/tmp/test_file_1ZTR52/file/build-filenamev/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/build-filenamev/.dirs/runtime 1263s ok 3 /file/build-filenamev 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/parent/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/parent/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/parent/.dirs/system-config1:/tmp/test_file_1ZTR52/file/parent/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/parent/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/parent/.dirs/system-data1:/tmp/test_file_1ZTR52/file/parent/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/parent/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/parent/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/parent/.dirs/runtime 1263s ok 4 /file/parent 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/child/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/child/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/child/.dirs/system-config1:/tmp/test_file_1ZTR52/file/child/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/child/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/child/.dirs/system-data1:/tmp/test_file_1ZTR52/file/child/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/child/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/child/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/child/.dirs/runtime 1263s ok 5 /file/child 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/empty-path/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/empty-path/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/empty-path/.dirs/system-config1:/tmp/test_file_1ZTR52/file/empty-path/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/empty-path/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/empty-path/.dirs/system-data1:/tmp/test_file_1ZTR52/file/empty-path/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/empty-path/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/empty-path/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/empty-path/.dirs/runtime 1263s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1263s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1263s ok 6 /file/empty-path 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/type/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/type/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/type/.dirs/system-config1:/tmp/test_file_1ZTR52/file/type/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/type/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/type/.dirs/system-data1:/tmp/test_file_1ZTR52/file/type/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/type/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/type/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/type/.dirs/runtime 1263s ok 7 /file/type 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/parse-name/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/parse-name/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/parse-name/.dirs/system-config1:/tmp/test_file_1ZTR52/file/parse-name/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/parse-name/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/parse-name/.dirs/system-data1:/tmp/test_file_1ZTR52/file/parse-name/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/parse-name/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/parse-name/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/parse-name/.dirs/runtime 1263s ok 8 /file/parse-name 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace-load/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace-load/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace-load/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace-load/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace-load/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace-load/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace-load/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace-load/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace-load/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace-load/.dirs/runtime 1263s ok 9 /file/replace-load 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace-cancel/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace-cancel/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace-cancel/.dirs/runtime 1263s # Bug Reference: https://bugzilla.gnome.org/629301 1263s ok 10 /file/replace-cancel 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace-symlink/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace-symlink/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace-symlink/.dirs/runtime 1263s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1263s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1263s # Using temporary directory /tmp/test_file_1ZTR52/g_file_replace_symlink_4FGR52 1263s ok 11 /file/replace-symlink 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-new-tmp/.dirs/runtime 1263s ok 12 /file/async-new-tmp 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-new-tmp-dir/.dirs/runtime 1263s ok 13 /file/async-new-tmp-dir 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-delete/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-delete/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-delete/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-delete/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-delete/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-delete/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-delete/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-delete/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-delete/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-delete/.dirs/runtime 1263s ok 14 /file/async-delete 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-make-symlink/.dirs/runtime 1263s ok 15 /file/async-make-symlink 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/copy-preserve-mode/.dirs/runtime 1263s # Current umask: 2 1263s # Vector 0 1263s # Vector 1 1263s # Vector 2 1263s # Vector 3 1263s # Vector 4 1263s # Vector 5 1263s # Vector 6 1263s # Vector 7 1263s # Vector 8 1263s # Vector 9 1263s # Vector 10 1263s ok 16 /file/copy-preserve-mode 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/copy-async-with-closures/.dirs/runtime 1263s ok 17 /file/copy-async-with-closures 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/measure/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/measure/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/measure/.dirs/system-config1:/tmp/test_file_1ZTR52/file/measure/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/measure/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/measure/.dirs/system-data1:/tmp/test_file_1ZTR52/file/measure/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/measure/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/measure/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/measure/.dirs/runtime 1263s ok 18 /file/measure 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/measure-async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/measure-async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/measure-async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/measure-async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/measure-async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/measure-async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/measure-async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/measure-async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/measure-async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/measure-async/.dirs/runtime 1263s ok 19 /file/measure-async 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/system-config1:/tmp/test_file_1ZTR52/file/load-bytes/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/system-data1:/tmp/test_file_1ZTR52/file/load-bytes/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/load-bytes/.dirs/runtime 1263s ok 20 /file/load-bytes 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/load-bytes-async/.dirs/runtime 1263s ok 21 /file/load-bytes-async 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/load-bytes-4gb/.dirs/runtime 1263s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/load-contents-4gb/.dirs/runtime 1263s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/load-contents-4gb-async/.dirs/runtime 1263s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/.dirs/runtime 1263s ok 25 /file/writev 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/build-attribute-list-for-copy/.dirs/runtime 1263s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1263s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1263s # 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::* 1263s # 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::* 1263s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1263s # Attributes for copy: standard::size,xattr::* 1263s # Attributes for copy: standard::size,unix::mode,xattr::* 1263s ok 26 /file/build-attribute-list-for-copy 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/move_async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/move_async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/move_async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/move_async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/move_async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/move_async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/move_async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/move_async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/move_async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/move_async/.dirs/runtime 1263s ok 27 /file/move_async 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/move-async-with-closures/.dirs/runtime 1263s ok 28 /file/move-async-with-closures 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/query-zero-length-content-type/.dirs/runtime 1263s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1263s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1263s ok 29 /file/query-zero-length-content-type 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/runtime 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/data/applications 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/config 1263s ok 30 /file/query-default-handler-file 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/runtime 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/data/applications 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_1ZTR52/file/query-default-handler-file/.dirs/config to /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config 1263s ok 31 /file/query-default-handler-file-async 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/runtime 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/data/applications 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_1ZTR52/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config 1263s ok 32 /file/query-default-handler-uri 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/runtime 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/data/applications 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/config 1263s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_1ZTR52/file/query-default-handler-uri/.dirs/config to /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/config 1263s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_1ZTR52/file/query-default-handler-uri-async/.dirs/config 1263s ok 33 /file/query-default-handler-uri-async 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/enumerator-cancellation/.dirs/runtime 1263s ok 34 /file/enumerator-cancellation 1263s # Start of async-create-delete tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-create-delete/0/.dirs/runtime 1263s ok 35 /file/async-create-delete/0 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-create-delete/1/.dirs/runtime 1263s ok 36 /file/async-create-delete/1 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-create-delete/10/.dirs/runtime 1263s ok 37 /file/async-create-delete/10 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-create-delete/25/.dirs/runtime 1263s ok 38 /file/async-create-delete/25 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/async-create-delete/4096/.dirs/runtime 1263s ok 39 /file/async-create-delete/4096 1263s # End of async-create-delete tests 1263s # Start of replace-symlink tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace-symlink/using-etag/.dirs/runtime 1263s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1263s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1263s # Using temporary directory /tmp/test_file_1ZTR52/g_file_replace_symlink_using_etag_HRA252 1264s # Executing: glib/file.test 1265s ok 40 /file/replace-symlink/using-etag 1265s # slow test /file/replace-symlink/using-etag executed in 2.01 secs 1265s # End of replace-symlink tests 1265s # Start of replace tests 1265s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/home 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/cache 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace/write-only/.dirs/system-config2 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/config 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace/write-only/.dirs/system-data2 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/data 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/state 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace/write-only/.dirs/runtime 1265s # /file/replace/write-only summary: Test various situations for g_file_replace() 1265s # Current umask: 2 1265s # Test 0, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_RB7152 1265s # Test 1, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_QU6152 1265s # Test 2, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_6V7152 1265s # Test 3, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_272152 1265s # Test 4, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_8M3152 1265s # Test 5, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_601152 1265s # Test 6, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_4PS152 1265s # Test 7, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_R61252 1265s # Test 8, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_WS1252 1265s # Test 9, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_0V1252 1265s # Test 10, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_MJ1252 1265s # Test 11, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_HR3252 1265s # Test 12, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_DE3252 1265s # Test 13, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_LI4252 1265s # Test 14, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_09T252 1265s # Test 15, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_AWX252 1265s # Test 16, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_QZR252 1265s # Test 17, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_V8G252 1265s # Test 18, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_6SM252 1265s # Test 19, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_OJL652 1265s # Test 20, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_PGJ652 1265s # Test 21, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_EHE652 1265s # Test 22, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_2O8552 1265s # Test 23, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_4D8552 1265s # Test 24, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_IUB652 1265s # Test 25, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_DB2552 1265s # Test 26, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_721552 1265s # Test 27, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_P41552 1265s # Test 28, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_LO3552 1265s # Test 29, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_G98652 1265s # Test 30, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_FT8652 1265s # Test 31, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_XYC752 1265s # Test 32, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_VUB752 1265s # Test 33, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_EU1652 1265s # Test 34, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_ZZ2652 1265s # Test 35, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_FF2652 1265s # Test 36, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_555652 1265s # Test 37, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_FZV652 1266s # Test 38, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_YZQ652 1266s # Test 39, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_CDQ652 1266s # Test 40, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_U2S652 1266s # Test 41, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_ST4452 1266s # Test 42, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_D07452 1266s # Test 43, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_JWX452 1266s # Test 44, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_MF1452 1266s # Test 45, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_XU0452 1266s # Test 46, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_NX8X52 1266s # Test 47, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_VR6X52 1266s # Test 48, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_YOYX52 1266s # We do not have CAP_DAC_OVERRIDE or equivalent 1266s ok 41 /file/replace/write-only 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/system-config1:/tmp/test_file_1ZTR52/file/replace/read-write/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/system-data1:/tmp/test_file_1ZTR52/file/replace/read-write/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/replace/read-write/.dirs/runtime 1266s # /file/replace/read-write summary: Test various situations for g_file_replace() 1266s # Current umask: 2 1266s # Test 0, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_F7YX52 1266s # Test 1, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_0KZX52 1266s # Test 2, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_7D2X52 1266s # Test 3, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_QCSX52 1266s # Test 4, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_ZHTX52 1266s # Test 5, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_5XSX52 1266s # Test 6, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_DLVX52 1266s # Test 7, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_C1MX52 1266s # Test 8, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_LLMX52 1266s # Test 9, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_ZTMX52 1266s # Test 10, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_KPNX52 1266s # Test 11, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_TEVY52 1266s # Test 12, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_BIVY52 1266s # Test 13, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_J2UY52 1266s # Test 14, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_1AXY52 1266s # Test 15, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_9MWY52 1266s # Test 16, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_K3QY52 1266s # Test 17, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_X9FY52 1266s # Test 18, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_9IJY52 1266s # Test 19, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_O9AY52 1266s # Test 20, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_G2AY52 1266s # Test 21, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_2CDY52 1266s # Test 22, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_HNRW52 1266s # Test 23, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_I2QW52 1266s # Test 24, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_4TUW52 1266s # Test 25, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_FGLW52 1266s # Test 26, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_H1KW52 1266s # Test 27, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_0PIW52 1266s # Test 28, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_2OLW52 1266s # Test 29, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_2CCW52 1266s # Test 30, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_YIDW52 1266s # Test 31, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_9UCW52 1266s # Test 32, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_VDGW52 1266s # Test 33, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_QZ5V52 1266s # Test 34, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_E26V52 1266s # Test 35, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_P56V52 1266s # Test 36, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_MWBW52 1266s # Test 37, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_2DAW52 1266s # Test 38, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_PGGX52 1266s # Test 39, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_OCFX52 1266s # Test 40, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_1IJX52 1266s # Test 41, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_GCAX52 1266s # Test 42, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_HWCX52 1266s # Test 43, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_Y7AX52 1266s # Test 44, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_6A4W52 1266s # Test 45, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_WQ3W52 1266s # Test 46, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_655W52 1266s # Test 47, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_P95W52 1266s # Test 48, using temporary directory /tmp/test_file_1ZTR52/g_file_replace_X1WW52 1266s # We do not have CAP_DAC_OVERRIDE or equivalent 1266s ok 42 /file/replace/read-write 1266s # End of replace tests 1266s # Start of copy tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/system-config1:/tmp/test_file_1ZTR52/file/copy/progress/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/system-data1:/tmp/test_file_1ZTR52/file/copy/progress/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/copy/progress/.dirs/runtime 1266s ok 43 /file/copy/progress 1266s # End of copy tests 1266s # Start of writev tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/no-bytes-written/.dirs/runtime 1266s ok 44 /file/writev/no-bytes-written 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/no-vectors/.dirs/runtime 1266s ok 45 /file/writev/no-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/empty-vectors/.dirs/runtime 1266s ok 46 /file/writev/empty-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/too-big-vectors/.dirs/runtime 1266s ok 47 /file/writev/too-big-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async/.dirs/runtime 1266s ok 48 /file/writev/async 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async_all/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async_all/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async_all/.dirs/runtime 1266s ok 49 /file/writev/async_all 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async_all-empty-vectors/.dirs/runtime 1266s ok 50 /file/writev/async_all-empty-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async_all-no-vectors/.dirs/runtime 1266s ok 51 /file/writev/async_all-no-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async_all-to-big-vectors/.dirs/runtime 1266s ok 52 /file/writev/async_all-to-big-vectors 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/writev/async_all-cancellation/.dirs/runtime 1266s ok 53 /file/writev/async_all-cancellation 1266s # End of writev tests 1266s # Start of from-uri tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/from-uri/ignores-query-string/.dirs/runtime 1266s ok 54 /file/from-uri/ignores-query-string 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_1ZTR52/file/from-uri/ignores-fragment/.dirs/runtime 1266s ok 55 /file/from-uri/ignores-fragment 1266s # End of from-uri tests 1266s # End of file tests 1266s ok - glib/file.test 1266s # Running test: glib/object-info.test 1266s TAP version 14 1266s # random seed: R02Saaf68b67d96e8dd83221dfcd9909ed79 1266s 1..2 1266s # Start of object-info tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_APZ052/object-info/find-method-using-interfaces/.dirs/runtime 1266s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1266s ok 1 /object-info/find-method-using-interfaces 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_APZ052/object-info/find-vfunc-using-interfaces/.dirs/runtime 1266s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1266s ok 2 /object-info/find-vfunc-using-interfaces 1266s # End of object-info tests 1266s ok - glib/object-info.test 1266s # Running test: glib/converter.test 1266s TAP version 14 1266s # random seed: R02S06273ab1b51cc08dde035244714da272 1266s 1..2 1266s # Start of converter tests 1266s ok 1 /converter/bytes 1266s ok 2 /converter/extra-bytes-at-end 1266s # End of converter tests 1266s ok - glib/converter.test 1266s # Running test: glib/option-context.test 1266s TAP version 14 1266s # random seed: R02S9e9aeefd607ff09c4c4b4622ff985184 1266s 1..58 1266s # Start of option tests 1266s ok 1 /option/basic 1266s ok 2 /option/translate 1266s ok 3 /option/strict-posix 1266s # Start of help tests 1266s ok 4 /option/help/options 1266s ok 5 /option/help/no-options 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1266s ok 6 /option/help/no-help-options 1266s # Usage: 1266s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 1266s # 1266s # Summary 1266s # 1266s # Help Options: 1266s # -h, --help Show help options 1266s # 1266s # Application Options: 1266s # -t, --test=Argument to use in test (deprecated) Test tests 1266s # --test2 Tests also 1266s # 1266s # Description 1266s # 1266s ok 7 /option/help/deprecated 1266s # End of help tests 1266s # Start of group tests 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1266s ok 8 /option/group/captions 1266s ok 9 /option/group/main 1266s ok 10 /option/group/error-hook 1266s ok 11 /option/group/parse 1266s # Start of captions tests 1266s # Start of subprocess tests 1266s # End of subprocess tests 1266s # End of captions tests 1266s # End of group tests 1266s # Start of restoration tests 1266s ok 12 /option/restoration/int 1266s ok 13 /option/restoration/string 1266s ok 14 /option/restoration/boolean 1266s # End of restoration tests 1266s # Start of arg tests 1266s ok 15 /option/arg/reverse-string 1266s ok 16 /option/arg/optional-int 1266s # Start of repetition tests 1266s ok 17 /option/arg/repetition/int 1266s ok 18 /option/arg/repetition/string 1266s ok 19 /option/arg/repetition/filename 1266s ok 20 /option/arg/repetition/double 1266s ok 21 /option/arg/repetition/locale 1266s ok 22 /option/arg/repetition/int64 1266s # End of repetition tests 1266s # Start of array tests 1266s ok 23 /option/arg/array/string 1266s # End of array tests 1266s # Start of callback tests 1266s ok 24 /option/arg/callback/string 1266s ok 25 /option/arg/callback/count 1266s ok 26 /option/arg/callback/optional1 1266s ok 27 /option/arg/callback/optional2 1266s ok 28 /option/arg/callback/optional3 1266s ok 29 /option/arg/callback/optional4 1266s ok 30 /option/arg/callback/optional5 1266s ok 31 /option/arg/callback/optional6 1266s ok 32 /option/arg/callback/optional7 1266s ok 33 /option/arg/callback/optional8 1266s # End of callback tests 1266s # Start of remaining tests 1266s ok 34 /option/arg/remaining/callback 1266s ok 35 /option/arg/remaining/callback-false 1266s ok 36 /option/arg/remaining/non-option 1266s ok 37 /option/arg/remaining/separator 1266s ok 38 /option/arg/remaining/array 1266s # End of remaining tests 1266s # Start of ignore tests 1266s ok 39 /option/arg/ignore/long 1266s ok 40 /option/arg/ignore/short 1266s ok 41 /option/arg/ignore/arg 1266s # End of ignore tests 1266s # Start of rest tests 1266s ok 42 /option/arg/rest/non-option 1266s ok 43 /option/arg/rest/separator1 1266s ok 44 /option/arg/rest/separator2 1266s ok 45 /option/arg/rest/separator3 1266s ok 46 /option/arg/rest/separator4 1266s ok 47 /option/arg/rest/separator5 1266s # End of rest tests 1266s # End of arg tests 1266s # Start of context tests 1266s ok 48 /option/context/add 1266s ok 49 /option/context/empty2 1266s ok 50 /option/context/empty3 1266s # End of context tests 1266s # Start of bug tests 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1266s ok 51 /option/bug/unknown-short 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1266s ok 52 /option/bug/lonely-dash 1266s ok 53 /option/bug/triple-dash 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1266s ok 54 /option/bug/missing-arg 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1266s ok 55 /option/bug/dash-arg 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1266s ok 56 /option/bug/short-remaining 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1266s ok 57 /option/bug/double-free 1266s ok 58 /option/bug/double-zero 1266s # End of bug tests 1266s # End of option tests 1266s ok - glib/option-context.test 1266s # Running test: glib/overflow.test 1266s TAP version 14 1266s # random seed: R02S65bad4daea08d4bef2a5ac5e4008ffdf 1266s 1..6 1266s # Start of glib tests 1266s # Start of checked-math tests 1266s ok 1 /glib/checked-math/guint-add 1266s ok 2 /glib/checked-math/guint-mul 1266s ok 3 /glib/checked-math/guint64-add 1266s ok 4 /glib/checked-math/guint64-mul 1266s ok 5 /glib/checked-math/gsize-add 1266s ok - glib/overflow.test 1266s ok 6 /glib/checked-math/gsize-mul 1266s # End of checked-math tests 1266s # End of glib tests 1266s # Running test: glib/accumulator.test 1266s TAP version 14 1266s # random seed: R02Sda13634ca07afca030536f146994f448 1266s 1..1 1266s # Start of gobject tests 1266s ok 1 /gobject/accumulator 1266s # End of gobject tests 1266s TAP version 14 1266s # random seed: R02S137196a617eb1fe2bf52a153c2570b73 1266s 1..2 1266s # Start of gtask tests 1266s # 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. 1266s ok 1 /gtask/name 1266s # Start of name tests 1266s # 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. 1266s ok 2 /gtask/name/macro-wrapper 1266s # End of name tests 1266s # End of gtask tests 1266s ok - glib/accumulator.test 1266s # Running test: glib/cxx-11.test 1266s ok - glib/cxx-11.test 1266s # Running test: glib/string.test 1266s TAP version 14 1266s # random seed: R02S147bf1d6769415013c7556e2f27d18e3 1266s 1..23 1266s # Start of string tests 1266s ok 1 /string/test-string-chunks 1266s ok 2 /string/test-string-chunk-insert 1266s ok 3 /string/test-string-new 1266s ok 4 /string/test-string-printf 1266s ok 5 /string/test-string-assign 1266s ok 6 /string/test-string-append-c 1266s ok 7 /string/test-string-append 1266s ok 8 /string/test-string-append-vprintf 1266s ok - glib/string.test 1266s # Running test: glib/proxy-test.test 1266s ok 9 /string/test-string-prepend-c 1266s ok 10 /string/test-string-prepend 1266s ok 11 /string/test-string-insert 1266s ok 12 /string/test-string-insert-unichar 1266s ok 13 /string/test-string-equal 1266s ok 14 /string/test-string-truncate 1266s ok 15 /string/test-string-overwrite 1266s ok 16 /string/test-string-nul-handling 1266s ok 17 /string/test-string-up-down 1266s ok 18 /string/test-string-set-size 1266s ok 19 /string/test-string-to-bytes 1266s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1266s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1266s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1266s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1266s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1266s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1266s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1266s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1266s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1266s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1266s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1266s # -> 4 replacements, "fd fr fals" 1266s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1266s # -> 3 replacements, "aaaaaaaaa" 1266s # 7: Replacing "a" with "" (limit 0) in "aaa" 1266s # -> 3 replacements, "" 1266s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1266s # -> 1 replacements, "bba" 1266s # 9: Replacing "" with "bar" (limit 0) in "foo" 1266s # -> 4 replacements, "barfbarobarobar" 1266s # 10: Replacing "" with "bar" (limit 1) in "foo" 1266s # -> 1 replacements, "barfoo" 1266s # 11: Replacing "" with "bar" (limit 2) in "foo" 1266s # -> 2 replacements, "barfbaroo" 1266s # 12: Replacing "" with "bar" (limit 3) in "foo" 1266s # -> 3 replacements, "barfbarobaro" 1266s # 13: Replacing "" with "bar" (limit 4) in "foo" 1266s # -> 4 replacements, "barfbarobarobar" 1266s # 14: Replacing "" with "bar" (limit 5) in "foo" 1266s # -> 4 replacements, "barfbarobarobar" 1266s # 15: Replacing "" with "x" (limit 0) in "" 1266s # -> 1 replacements, "x" 1266s # 16: Replacing "" with "" (limit 0) in "" 1266s # -> 1 replacements, "" 1266s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1266s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1266s ok 20 /string/test-string-replace 1266s ok 21 /string/test-string-steal 1266s ok 22 /string/test-string-new-take 1266s # Start of test-string-new-take tests 1266s ok 23 /string/test-string-new-take/null 1266s # End of test-string-new-take tests 1266s # End of string tests 1266s TAP version 14 1266s # random seed: R02S20ecac4094679096b0be317fb2b517cf 1266s 1..11 1266s # Start of proxy tests 1266s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 1266s ok 1 /proxy/direct_sync 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09760 and GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0c220 for GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s ok 2 /proxy/direct_async 1266s ok 3 /proxy/single_sync 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0be40 and GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d120 for GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s ok 4 /proxy/single_async 1266s ok 5 /proxy/multiple_sync 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0bfd0 and GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d120 for GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0c088 for GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s ok 6 /proxy/multiple_async 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1266s ok 7 /proxy/invalid-uris-sync 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09548 and GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0be40 and GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09548 and GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d120 for GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0be40 and GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d120 for GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s ok 8 /proxy/invalid-uris-async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09760 and GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1266s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0d760 and GSocketClientAsyncConnectData 0xfe0c0d8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d410 for GSocketClientAsyncConnectData 0xfe0c0d8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09548 and GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d410 for GSocketClientAsyncConnectData 0xfe0bf88 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s ok 9 /proxy/dns 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09548 and GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s ok - glib/proxy-test.test 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d630 for GSocketClientAsyncConnectData 0xfe098c8 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe0d760 and GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d630 for GSocketClientAsyncConnectData 0xfe0c670 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1266s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1266s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfe09548 and GSocketClientAsyncConnectData 0xfe0d580 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1266s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfe0d630 for GSocketClientAsyncConnectData 0xfe0d580 1266s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1266s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1266s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1266s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1266s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1266s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1266s ok 10 /proxy/override 1266s ok 11 /proxy/enumerator-ports 1266s # End of proxy tests 1266s # Running test: glib/value.test 1266s TAP version 14 1266s # random seed: R02Se8c6dda8832db2993f98b54f32824a7e 1266s 1..9 1266s # Start of value tests 1266s ok 1 /value/basic 1266s ok 2 /value/collection 1266s ok 3 /value/copying 1266s ok 4 /value/enum-transformation 1266s ok 5 /value/gtype 1266s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1266s ok 6 /value/string 1266s # Next: GObject object in GValue of GObject to GValue of GObject 1266s # Next: GObject object in GValue of GObject to GValue of TestInterface 1266s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1266s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1266s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1266s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1266s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1266s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1266s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1266s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1266s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1266s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1266s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1266s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1266s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1266s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1266s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1266s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1266s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1266s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1266s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1266s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1266s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1266s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1266s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1266s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1266s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1266s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1266s ok 7 /value/transform-object 1266s # Start of array tests 1266s ok 8 /value/array/basic 1266s ok 9 /value/array/sort-with-data 1266s # End of array tests 1266s # End of value tests 1266s ok - glib/value.test 1266s # Running test: glib/memory-output-stream.test 1266s TAP version 14 1266s # random seed: R02S1f05ac77e682974c271cdf1e8e7ec9dd 1266s 1..10 1266s # Start of memory-output-stream tests 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1266s ok 1 /memory-output-stream/truncate 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1266s ok 2 /memory-output-stream/get-data-size 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1266s ok - glib/memory-output-stream.test 1266s # Running test: glib/memory-input-stream.test 1266s ok 3 /memory-output-stream/properties 1266s ok 4 /memory-output-stream/write-bytes 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1266s ok 5 /memory-output-stream/write-null 1266s ok 6 /memory-output-stream/writev 1266s ok 7 /memory-output-stream/writev_nonblocking 1266s ok 8 /memory-output-stream/steal_as_bytes 1266s # Start of seek tests 1266s ok 9 /memory-output-stream/seek/fixed 1266s ok 10 /memory-output-stream/seek/resizable 1266s # End of seek tests 1266s # End of memory-output-stream tests 1266s TAP version 14 1266s # random seed: R02S2f1f6b4fefbaefbea4f925ceb40339b1 1266s 1..6 1266s # Start of memory-input-stream tests 1266s ok 1 /memory-input-stream/read-chunks 1266s ok - glib/memory-input-stream.test 1266s ok 2 /memory-input-stream/async 1266s ok 3 /memory-input-stream/seek 1266s ok 4 /memory-input-stream/truncate 1266s ok 5 /memory-input-stream/read-bytes 1266s ok 6 /memory-input-stream/from-bytes 1266s # End of memory-input-stream tests 1266s # Running test: glib/data-output-stream.test 1266s TAP version 14 1266s # random seed: R02S4b9d11384764fd1fd1240a6664f3353a 1266s 1..7 1266s # Start of data-output-stream tests 1266s ok 1 /data-output-stream/basic 1266s ok 2 /data-output-stream/write-lines-LF 1266s ok 3 /data-output-stream/write-lines-CR 1266s ok 4 /data-output-stream/write-lines-CR-LF 1266s ok 5 /data-output-stream/write-int 1266s ok 6 /data-output-stream/seek 1266s ok 7 /data-output-stream/truncate 1266s # End of data-output-stream tests 1266s TAP version 14 1266s # random seed: R02S700269bd36d3cc6d9ff75df64d716653 1266s 1..1 1266s # Start of gdbus tests 1266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/home 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/cache 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/system-config2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/config 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/system-data2 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/data 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/state 1266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_PFLS52/gdbus/non-socket/.dirs/runtime 1266s ok - glib/data-output-stream.test 1266s # Running test: glib/gdbus-non-socket.test 1266s ok 1 /gdbus/non-socket 1266s # End of gdbus tests 1266s ok - glib/gdbus-non-socket.test 1266s # Running test: glib/thread-pool-slow.test 1266s TAP version 14 1266s # random seed: R02Se2cd52ed4c0d086d3300edc5d43eabee 1266s 1..7 1266s # Start of threadpool tests 1266s ok 1 /threadpool/functions 1266s ok 2 /threadpool/stop-unused 1266s # slow test /threadpool/stop-unused executed in 0.51 secs 1266s ok 3 /threadpool/pools 1266s # [unsorted] ===> pushed new thread with id:13, number of threads:1, unprocessed:1 1266s # [unsorted] ===> pushed new thread with id:49, number of threads:2, unprocessed:2 1266s # [unsorted] ===> pushed new thread with id:99, number of threads:3, unprocessed:3 1266s # [unsorted] ===> pushed new thread with id:44, number of threads:4, unprocessed:4 1266s # [unsorted] ===> pushed new thread with id:60, number of threads:5, unprocessed:5 1266s # [unsorted] ===> pushed new thread with id:18, number of threads:6, unprocessed:5 1266s # [unsorted] ===> pushed new thread with id:74, number of threads:7, unprocessed:5 1266s # [unsorted] ===> pushed new thread with id:53, number of threads:8, unprocessed:6 1266s # [unsorted] ===> pushed new thread with id:35, number of threads:9, unprocessed:6 1266s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:7 1266s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:8 1266s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:8 1266s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:9 1266s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:9 1266s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:10 1266s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:11 1266s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:12 1266s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:11 1266s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:12 1266s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:13 1266s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:14 1266s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:15 1266s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:16 1266s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:17 1266s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:18 1266s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:19 1266s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:20 1266s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:21 1266s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:22 1266s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:23 1266s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:24 1266s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:25 1266s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:26 1266s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:27 1266s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:28 1266s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:29 1266s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:30 1266s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:31 1266s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:32 1266s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:33 1266s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:34 1266s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:35 1266s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:36 1266s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:37 1266s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:38 1266s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:39 1266s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:40 1266s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:41 1266s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:42 1266s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:43 1266s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:44 1266s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:45 1266s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:46 1266s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:47 1266s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:48 1266s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:49 1266s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:50 1266s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:51 1266s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:52 1266s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:53 1266s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:54 1266s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:55 1266s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:56 1266s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:57 1266s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:58 1266s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:59 1266s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:60 1266s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:61 1266s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:62 1266s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:63 1266s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:64 1266s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:65 1266s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:66 1266s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:67 1266s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:68 1266s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:69 1266s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:70 1266s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:71 1266s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:72 1266s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:73 1266s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:74 1266s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:75 1266s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:76 1266s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:77 1266s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:78 1266s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:79 1266s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:80 1266s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:81 1266s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:82 1266s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:83 1266s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:84 1266s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:85 1266s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:86 1266s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:87 1266s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:88 1266s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:89 1266s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:90 1266s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:91 1266s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:92 1266s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:93 1266s ok 4 /threadpool/no-sort 1266s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:1 1266s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:2 1266s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:3 1266s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:4 1266s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:5 1266s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:6 1266s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:7 1266s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:8 1266s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:9 1266s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:10 1266s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:11 1266s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:12 1266s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:13 1266s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:14 1266s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:15 1266s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:16 1266s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:17 1266s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:18 1266s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:19 1266s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:20 1266s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:21 1266s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:22 1266s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:23 1266s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:24 1266s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:25 1266s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:26 1266s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:27 1266s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:28 1266s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:29 1266s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:30 1266s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:31 1266s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:32 1266s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:33 1266s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:34 1266s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:35 1266s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:36 1266s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:37 1266s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:38 1266s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:39 1266s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:40 1266s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:41 1266s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:42 1266s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:43 1266s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:44 1266s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:45 1266s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:46 1266s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:47 1266s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:48 1266s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:49 1266s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:50 1266s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:51 1266s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:52 1266s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:53 1266s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:54 1266s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:55 1266s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:56 1266s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:57 1266s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:58 1266s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:59 1266s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:60 1266s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:61 1266s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:62 1266s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:63 1266s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:64 1266s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:65 1266s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:66 1266s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:67 1266s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:68 1266s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:69 1266s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:70 1266s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:71 1266s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:72 1266s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:73 1266s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:74 1266s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:75 1266s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:76 1266s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:77 1266s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:78 1266s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:79 1266s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:80 1266s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:81 1266s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:82 1266s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:83 1266s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:84 1266s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:85 1266s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:86 1266s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:87 1266s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:88 1266s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:89 1266s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:90 1266s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:91 1266s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:92 1266s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:93 1266s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:94 1266s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:95 1266s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:96 1266s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:97 1266s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:98 1266s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:99 1266s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:100 1266s # Starting thread pool processing 1266s ok 5 /threadpool/sort 1267s ok 6 /threadpool/stop-unused-multiple 1267s # slow test /threadpool/stop-unused-multiple executed in 0.52 secs 1267s # Pool idle thread count: 0, unprocessed jobs: 39 1268s # Pool idle thread count: 0, unprocessed jobs: 0 1268s # Pool idle thread count: 0, unprocessed jobs: 0 1268s # Pool idle thread count: 10, unprocessed jobs: 0 1268s # Pool idle thread count: 10, unprocessed jobs: 0 1269s # Pool idle thread count: 10, unprocessed jobs: 0 1269s # Pool idle thread count: 10, unprocessed jobs: 0 1269s # Pool idle thread count: 10, unprocessed jobs: 0 1269s # Pool idle thread count: 10, unprocessed jobs: 0 1269s # Executing: glib/thread-pool-slow.test 1270s # Pool idle thread count: 10, unprocessed jobs: 0 1270s # Pool idle thread count: 10, unprocessed jobs: 0 1270s # Pool idle thread count: 10, unprocessed jobs: 0 1270s # Pool idle thread count: 10, unprocessed jobs: 0 1271s # Pool idle thread count: 10, unprocessed jobs: 0 1271s # Pool idle thread count: 10, unprocessed jobs: 0 1271s # Pool idle thread count: 10, unprocessed jobs: 0 1271s # Pool idle thread count: 10, unprocessed jobs: 0 1272s # Pool idle thread count: 10, unprocessed jobs: 0 1272s # Pool idle thread count: 10, unprocessed jobs: 0 1272s # Pool idle thread count: 10, unprocessed jobs: 0 1272s # Pool idle thread count: 10, unprocessed jobs: 0 1273s # Pool idle thread count: 10, unprocessed jobs: 0 1273s # Pool idle thread count: 10, unprocessed jobs: 0 1273s # Pool idle thread count: 10, unprocessed jobs: 0 1273s # Pool idle thread count: 10, unprocessed jobs: 0 1274s # Pool idle thread count: 10, unprocessed jobs: 0 1274s # Pool idle thread count: 10, unprocessed jobs: 0 1274s # Pool idle thread count: 10, unprocessed jobs: 0 1274s # Pool idle thread count: 10, unprocessed jobs: 0 1274s # Executing: glib/thread-pool-slow.test 1275s # Pool idle thread count: 10, unprocessed jobs: 0 1275s # Pool idle thread count: 10, unprocessed jobs: 0 1275s # Pool idle thread count: 10, unprocessed jobs: 0 1275s # Pool idle thread count: 10, unprocessed jobs: 0 1276s # Pool idle thread count: 10, unprocessed jobs: 0 1276s # Pool idle thread count: 10, unprocessed jobs: 0 1276s # Pool idle thread count: 10, unprocessed jobs: 2 1276s # Pool idle thread count: 9, unprocessed jobs: 1 1276s # Pool idle thread count: 8, unprocessed jobs: 0 1276s # Pool idle thread count: 8, unprocessed jobs: 0 1277s # Pool idle thread count: 10, unprocessed jobs: 0 1277s # Pool idle thread count: 10, unprocessed jobs: 0 1277s # Pool idle thread count: 10, unprocessed jobs: 0 1277s # Pool idle thread count: 10, unprocessed jobs: 0 1278s # Pool idle thread count: 10, unprocessed jobs: 0 1278s # Pool idle thread count: 10, unprocessed jobs: 0 1278s # Pool idle thread count: 2, unprocessed jobs: 0 1278s # Pool idle thread count: 2, unprocessed jobs: 0 1279s # Pool idle thread count: 2, unprocessed jobs: 0 1279s # Pool idle thread count: 2, unprocessed jobs: 0 1279s # Pool idle thread count: 2, unprocessed jobs: 0 1279s # Pool idle thread count: 2, unprocessed jobs: 0 1279s # Executing: glib/thread-pool-slow.test 1280s # Pool idle thread count: 2, unprocessed jobs: 0 1280s # Pool idle thread count: 2, unprocessed jobs: 0 1280s # Pool idle thread count: 2, unprocessed jobs: 0 1280s # Pool idle thread count: 2, unprocessed jobs: 0 1281s # Pool idle thread count: 2, unprocessed jobs: 0 1281s # Pool idle thread count: 2, unprocessed jobs: 0 1281s # Pool idle thread count: 2, unprocessed jobs: 0 1281s # Pool idle thread count: 2, unprocessed jobs: 0 1282s # Pool idle thread count: 2, unprocessed jobs: 0 1282s # Pool idle thread count: 2, unprocessed jobs: 0 1282s # Pool idle thread count: 2, unprocessed jobs: 0 1282s # Pool idle thread count: 2, unprocessed jobs: 0 1283s # Pool idle thread count: 2, unprocessed jobs: 0 1283s # Pool idle thread count: 2, unprocessed jobs: 0 1283s # Pool idle thread count: 2, unprocessed jobs: 0 1283s # Pool idle thread count: 2, unprocessed jobs: 0 1284s # Pool idle thread count: 2, unprocessed jobs: 0 1284s # Pool idle thread count: 2, unprocessed jobs: 0 1284s # Pool idle thread count: 2, unprocessed jobs: 0 1284s # Pool idle thread count: 2, unprocessed jobs: 0 1284s # Executing: glib/thread-pool-slow.test 1285s # Pool idle thread count: 2, unprocessed jobs: 0 1285s # Pool idle thread count: 2, unprocessed jobs: 0 1285s # Pool idle thread count: 2, unprocessed jobs: 0 1285s # Pool idle thread count: 2, unprocessed jobs: 0 1286s # Pool idle thread count: 2, unprocessed jobs: 0 1286s # Pool idle thread count: 2, unprocessed jobs: 0 1286s # Pool idle thread count: 2, unprocessed jobs: 0 1286s # Pool idle thread count: 2, unprocessed jobs: 0 1287s ok 7 /threadpool/idle-time 1287s # slow test /threadpool/idle-time executed in 19.52 secs 1287s # End of threadpool tests 1287s ok - glib/thread-pool-slow.test 1287s # Running test: glib/queue.test 1287s TAP version 14 1287s # random seed: R02S9dd6a56046d811ae4f6e2256b946d714 1287s 1..12 1287s # Start of queue tests 1287s ok 1 /queue/basic 1287s ok 2 /queue/copy 1287s ok 3 /queue/off-by-one 1287s ok 4 /queue/find-custom 1287s ok 5 /queue/static 1287s ok 6 /queue/clear 1287s ok 7 /queue/free-full 1287s ok 8 /queue/clear-full 1287s ok 9 /queue/insert-sibling-link 1287s ok 10 /queue/push-nth-link 1287s # Start of clear-full tests 1287s ok 11 /queue/clear-full/noop 1287s # End of clear-full tests 1287s # Start of random tests 1287s ok - glib/queue.test 1287s ok 12 /queue/random/seed:1983484523 1287s # End of random tests 1287s # End of queue tests 1287s # Running test: glib/deftype.test 1287s ok - glib/deftype.test 1287s # Running test: glib/cancellable.test 1287s TAP version 14 1287s # random seed: R02Sde98e0de7583f8dab0d4ccb06ddbb508 1287s 1..18 1287s # Start of cancellable tests 1287s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1287s ok 2 /cancellable/null 1287s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1287s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1287s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1287s ok 4 /cancellable/connect-to-disposing-callback 1287s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 1 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 0 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 1 1287s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1287s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1287s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1287s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1287s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 1 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 0 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 1 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 0 1287s # Toggle reference callback for GCancellable (0x8e1e6f0), last: 1 1287s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1287s # /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 1287s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1287s # /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 1287s ok 11 /cancellable/resets-on-cancel-callback-hangs 1287s ok 12 /cancellable/poll-fd 1287s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1287s ok 13 /cancellable/poll-fd-cancelled 1287s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1287s ok 14 /cancellable/poll-fd-cancelled-threaded 1287s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1287s ok 15 /cancellable/cancel-reset-races 1287s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1287s ok 16 /cancellable/cancel-reset-connect-races 1287s # End of cancellable tests 1287s # Start of cancellable-source tests 1287s # /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) 1287s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1288s ok 17 /cancellable-source/threaded-dispose 1288s # slow test /cancellable-source/threaded-dispose executed in 0.67 secs 1288s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1288s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1288s ok - glib/cancellable.test 1288s ok 18 /cancellable-source/can-be-fired-multiple-times 1288s # End of cancellable-source tests 1288s # Running test: glib/appmonitor.test 1288s TAP version 14 1288s # random seed: R02S06d0ca8da87f28ebbd383e090c2c9a97 1288s 1..1 1288s # Start of monitor tests 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/runtime 1288s # Using data directory: /tmp/test_appmonitor_FT8Z52/monitor/app/.dirs/data 1288s ok 1 /monitor/app 1288s # End of monitor tests 1288s ok - glib/appmonitor.test 1288s # Running test: glib/gdbus-connection.test 1288s TAP version 14 1288s # random seed: R02Sf8f582dfc724e56e202d441634ce69f6 1288s 1..9 1288s # Start of gdbus tests 1288s # Start of connection tests 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/bus-failure/.dirs/runtime 1288s ok 1 /gdbus/connection/bus-failure 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/basic/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 2 /gdbus/connection/basic 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/life-cycle/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 3 /gdbus/connection/life-cycle 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/send/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 4 /gdbus/connection/send 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signals/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 5 /gdbus/connection/signals 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/signal-match-rules/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 6 /gdbus/connection/signal-match-rules 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/filter/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 7 /gdbus/connection/filter 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/serials/.dirs/runtime 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 8 /gdbus/connection/serials 1288s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/home 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/cache 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/system-config2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/config 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/system-data2 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/data 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/state 1288s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_CH6Z52/gdbus/connection/cancel/.dirs/runtime 1288s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1288s ok 9 /gdbus/connection/cancel 1288s # End of connection tests 1288s # End of gdbus tests 1288s ok - glib/gdbus-connection.test 1288s # Running test: glib/mkenums.py.test 1288s TAP version 13 1288s ok 1 __main__.TestMkenums.test_available_in 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpvafmucif 1288s # rspfile: False 1288s # /tmp/tmpvafmucif/tmp322mrnxl.h: 1288s # typedef enum { 1288s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1288s # } GDBusServerFlags; 1288s # 1288s # /tmp/tmpvafmucif/tmp4melmekx.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvafmucif/tmp4melmekx.template', '/tmp/tmpvafmucif/tmp322mrnxl.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-production 1288s # filename: /tmp/tmpvafmucif/tmp322mrnxl.h 1288s # basename: tmp322mrnxl.h 1288s # enumeration-production 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-header 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-production 1288s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1288s # valuenick: user 1288s # valuenum: 4 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-tail 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1288s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpaam0nfpp 1288s # rspfile: False 1288s # /tmp/tmpaam0nfpp/tmpu90zgrn1.h: 1288s # typedef enum { 1288s # ENUM_VALUE_WITH_COMMA = ',', 1288s # } TestCommaEnum; 1288s # 1288s # /tmp/tmpaam0nfpp/tmp93mmw7xr.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpaam0nfpp/tmp93mmw7xr.template', '/tmp/tmpaam0nfpp/tmpu90zgrn1.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-production 1288s # filename: /tmp/tmpaam0nfpp/tmpu90zgrn1.h 1288s # basename: tmpu90zgrn1.h 1288s # enumeration-production 1288s # EnumName: TestCommaEnum 1288s # enum_name: test_comma_enum 1288s # ENUMNAME: TEST_COMMA_ENUM 1288s # ENUMSHORT: COMMA_ENUM 1288s # ENUMPREFIX: TEST 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-header 1288s # EnumName: TestCommaEnum 1288s # enum_name: test_comma_enum 1288s # ENUMNAME: TEST_COMMA_ENUM 1288s # ENUMSHORT: COMMA_ENUM 1288s # ENUMPREFIX: TEST 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-production 1288s # VALUENAME: ENUM_VALUE_WITH_COMMA 1288s # valuenick: comma 1288s # valuenum: 44 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-tail 1288s # EnumName: TestCommaEnum 1288s # enum_name: test_comma_enum 1288s # ENUMNAME: TEST_COMMA_ENUM 1288s # ENUMSHORT: COMMA_ENUM 1288s # ENUMPREFIX: TEST 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1288s ok 3 __main__.TestMkenums.test_deprecated_in 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpippst0qy 1288s # rspfile: False 1288s # /tmp/tmpippst0qy/tmpeunwqsna.h: 1288s # typedef enum { 1288s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1288s # } GDBusServerFlags; 1288s # 1288s # /tmp/tmpippst0qy/tmp4rl7actq.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpippst0qy/tmp4rl7actq.template', '/tmp/tmpippst0qy/tmpeunwqsna.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-production 1288s # filename: /tmp/tmpippst0qy/tmpeunwqsna.h 1288s # basename: tmpeunwqsna.h 1288s # enumeration-production 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-header 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-production 1288s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1288s # valuenick: user 1288s # valuenum: 4 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-tail 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1288s ok 4 __main__.TestMkenums.test_deprecated_in_for 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmprn_gm7ci 1288s # rspfile: False 1288s # /tmp/tmprn_gm7ci/tmpm8a3d8u5.h: 1288s # typedef enum { 1288s # 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) 1288s # } GDBusServerFlags; 1288s # 1288s # /tmp/tmprn_gm7ci/tmpds_pefy_.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmprn_gm7ci/tmpds_pefy_.template', '/tmp/tmprn_gm7ci/tmpm8a3d8u5.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-production 1288s # filename: /tmp/tmprn_gm7ci/tmpm8a3d8u5.h 1288s # basename: tmpm8a3d8u5.h 1288s # enumeration-production 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-header 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-production 1288s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1288s # valuenick: user 1288s # valuenum: 4 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # value-tail 1288s # EnumName: GDBusServerFlags 1288s # enum_name: g_dbus_server_flags 1288s # ENUMNAME: G_DBUS_SERVER_FLAGS 1288s # ENUMSHORT: DBUS_SERVER_FLAGS 1288s # ENUMPREFIX: G 1288s # enumsince: 1288s # type: flags 1288s # Type: Flags 1288s # TYPE: FLAGS 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1288s ok 5 __main__.TestMkenums.test_empty_header 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpeqlgvifv 1288s # rspfile: False 1288s # /tmp/tmpeqlgvifv/tmpzzavqrdx.h: 1288s # /tmp/tmpeqlgvifv/tmp96ssadju.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpeqlgvifv/tmp96ssadju.template', '/tmp/tmpeqlgvifv/tmpzzavqrdx.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1288s ok 6 __main__.TestMkenums.test_empty_template 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpc7k36jx5 1288s # rspfile: False 1288s # /tmp/tmpc7k36jx5/tmpxgrqb4ns.template: 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpc7k36jx5/tmpxgrqb4ns.template'] 1288s # Return code: 0 1288s # Output: 1288s # /* 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. */ 1288s # 1288s # 1288s # /* Generated data ends here */ 1288s # Error: 1288s ok 7 __main__.TestMkenums.test_enum_name 1288s # glib-mkenums: /usr/bin/glib-mkenums 1288s # tmpdir: /tmp/tmpwpyy8jj8 1288s # rspfile: False 1288s # /tmp/tmpwpyy8jj8/tmp28fbgq6l.h: 1288s # typedef enum _SomeEnumIdentifier { 1288s # ENUM_VALUE 1288s # } SomeEnumIdentifier; 1288s # 1288s # /tmp/tmpwpyy8jj8/tmp4hoqxupu.template: 1288s # /*** BEGIN file-header ***/ 1288s # file-header 1288s # /*** END file-header ***/ 1288s # 1288s # /*** BEGIN file-production ***/ 1288s # file-production 1288s # filename: @filename@ 1288s # basename: @basename@ 1288s # /*** END file-production ***/ 1288s # 1288s # /*** BEGIN enumeration-production ***/ 1288s # enumeration-production 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END enumeration-production ***/ 1288s # 1288s # /*** BEGIN value-header ***/ 1288s # value-header 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-header ***/ 1288s # 1288s # /*** BEGIN value-production ***/ 1288s # value-production 1288s # VALUENAME: @VALUENAME@ 1288s # valuenick: @valuenick@ 1288s # valuenum: @valuenum@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-production ***/ 1288s # 1288s # /*** BEGIN value-tail ***/ 1288s # value-tail 1288s # EnumName: @EnumName@ 1288s # enum_name: @enum_name@ 1288s # ENUMNAME: @ENUMNAME@ 1288s # ENUMSHORT: @ENUMSHORT@ 1288s # ENUMPREFIX: @ENUMPREFIX@ 1288s # enumsince: @enumsince@ 1288s # type: @type@ 1288s # Type: @Type@ 1288s # TYPE: @TYPE@ 1288s # /*** END value-tail ***/ 1288s # 1288s # /*** BEGIN comment ***/ 1288s # comment 1288s # comment: @comment@ 1288s # /*** END comment ***/ 1288s # 1288s # /*** BEGIN file-tail ***/ 1288s # file-tail 1288s # /*** END file-tail ***/ 1288s # 1288s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwpyy8jj8/tmp4hoqxupu.template', '/tmp/tmpwpyy8jj8/tmp28fbgq6l.h'] 1288s # Return code: 0 1288s # Output: 1288s # comment 1288s # 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. 1288s # 1288s # 1288s # file-header 1288s # file-production 1288s # filename: /tmp/tmpwpyy8jj8/tmp28fbgq6l.h 1288s # basename: tmp28fbgq6l.h 1288s # enumeration-production 1288s # EnumName: SomeEnumIdentifier 1288s # enum_name: some_enum_identifier 1288s # ENUMNAME: SOME_ENUM_IDENTIFIER 1288s # ENUMSHORT: ENUM_IDENTIFIER 1288s # ENUMPREFIX: SOME 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-header 1288s # EnumName: SomeEnumIdentifier 1288s # enum_name: some_enum_identifier 1288s # ENUMNAME: SOME_ENUM_IDENTIFIER 1288s # ENUMSHORT: ENUM_IDENTIFIER 1288s # ENUMPREFIX: SOME 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-production 1288s # VALUENAME: ENUM_VALUE 1288s # valuenick: value 1288s # valuenum: 0 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # value-tail 1288s # EnumName: SomeEnumIdentifier 1288s # enum_name: some_enum_identifier 1288s # ENUMNAME: SOME_ENUM_IDENTIFIER 1288s # ENUMSHORT: ENUM_IDENTIFIER 1288s # ENUMPREFIX: SOME 1288s # enumsince: 1288s # type: enum 1288s # Type: Enum 1288s # TYPE: ENUM 1288s # file-tail 1288s # 1288s # comment 1288s # comment: Generated data ends here 1288s # Error: 1289s ok 8 __main__.TestMkenums.test_enum_private_public 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpwtcrr2xg 1289s # rspfile: False 1289s # /tmp/tmpwtcrr2xg/tmppgbl5_an.h: 1289s # typedef enum { 1289s # ENUM_VALUE_PUBLIC1, 1289s # /*< private >*/ 1289s # ENUM_VALUE_PRIVATE, 1289s # } SomeEnumA 1289s # 1289s # /tmp/tmpwtcrr2xg/tmpzdctzf85.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwtcrr2xg/tmpzdctzf85.template', '/tmp/tmpwtcrr2xg/tmppgbl5_an.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpwtcrr2xg/tmppgbl5_an.h 1289s # basename: tmppgbl5_an.h 1289s # enumeration-production 1289s # EnumName: SomeEnumA 1289s # enum_name: some_enum_a 1289s # ENUMNAME: SOME_ENUM_A 1289s # ENUMSHORT: ENUM_A 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: SomeEnumA 1289s # enum_name: some_enum_a 1289s # ENUMNAME: SOME_ENUM_A 1289s # ENUMSHORT: ENUM_A 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: ENUM_VALUE_PUBLIC1 1289s # valuenick: public1 1289s # valuenum: 0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: SomeEnumA 1289s # enum_name: some_enum_a 1289s # ENUMNAME: SOME_ENUM_A 1289s # ENUMSHORT: ENUM_A 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s # 1289s # /tmp/tmpwtcrr2xg/tmpey0315zt.h: 1289s # typedef enum { 1289s # /*< private >*/ 1289s # ENUM_VALUE_PRIVATE, 1289s # /*< public >*/ 1289s # ENUM_VALUE_PUBLIC2, 1289s # } SomeEnumB; 1289s # 1289s # /tmp/tmpwtcrr2xg/tmpggpa5hgn.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwtcrr2xg/tmpggpa5hgn.template', '/tmp/tmpwtcrr2xg/tmpey0315zt.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpwtcrr2xg/tmpey0315zt.h 1289s # basename: tmpey0315zt.h 1289s # enumeration-production 1289s # EnumName: SomeEnumB 1289s # enum_name: some_enum_b 1289s # ENUMNAME: SOME_ENUM_B 1289s # ENUMSHORT: ENUM_B 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: SomeEnumB 1289s # enum_name: some_enum_b 1289s # ENUMNAME: SOME_ENUM_B 1289s # ENUMSHORT: ENUM_B 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: ENUM_VALUE_PUBLIC2 1289s # valuenick: public2 1289s # valuenum: 1 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: SomeEnumB 1289s # enum_name: some_enum_b 1289s # ENUMNAME: SOME_ENUM_B 1289s # ENUMSHORT: ENUM_B 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpez1dsr5j 1289s # rspfile: False 1289s # /tmp/tmpez1dsr5j/tmpmndqjvop.h: 1289s # typedef enum { 1289s # /*< private >*/ 1289s # ENUM_VALUE_PRIVATE = 5, 1289s # /*< public >*/ 1289s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1289s # } TestSymbolicEnum; 1289s # 1289s # /tmp/tmpez1dsr5j/tmpn1s5dn9d.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpez1dsr5j/tmpn1s5dn9d.template', '/tmp/tmpez1dsr5j/tmpmndqjvop.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpez1dsr5j/tmpmndqjvop.h 1289s # basename: tmpmndqjvop.h 1289s # enumeration-production 1289s # EnumName: TestSymbolicEnum 1289s # enum_name: test_symbolic_enum 1289s # ENUMNAME: TEST_SYMBOLIC_ENUM 1289s # ENUMSHORT: SYMBOLIC_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: TestSymbolicEnum 1289s # enum_name: test_symbolic_enum 1289s # ENUMNAME: TEST_SYMBOLIC_ENUM 1289s # ENUMSHORT: SYMBOLIC_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: ENUM_VALUE_PUBLIC 1289s # valuenick: public 1289s # valuenum: 7 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: TestSymbolicEnum 1289s # enum_name: test_symbolic_enum 1289s # ENUMNAME: TEST_SYMBOLIC_ENUM 1289s # ENUMSHORT: SYMBOLIC_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmppuhyv8rk 1289s # rspfile: False 1289s # /tmp/tmppuhyv8rk/tmpg4g2agos.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-tail ***/ 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmppuhyv8rk/tmpg4g2agos.template'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # file-tail 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s # WARNING: @filename@ used in file-header section. 1289s # WARNING: @basename@ used in file-header section. 1289s # WARNING: @filename@ used in file-tail section. 1289s # WARNING: @basename@ used in file-tail section. 1289s ok 11 __main__.TestMkenums.test_help 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpuxu86v_n 1289s # rspfile: False 1289s # Running: ['/usr/bin/glib-mkenums', '--help'] 1289s # Return code: 0 1289s # Output: 1289s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1289s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1289s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1289s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1289s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1289s # [--output OUTPUT] [--version] 1289s # [args ...] 1289s # 1289s # positional arguments: 1289s # args One or more input files, or a single argument 1289s # @rspfile_path pointing to a file that contains the 1289s # actual arguments 1289s # 1289s # options: 1289s # -h, --help show this help message and exit 1289s # --identifier-prefix IDPREFIX 1289s # Identifier prefix 1289s # --symbol-prefix SYMPREFIX 1289s # Symbol prefix 1289s # --fhead FHEAD Output file header 1289s # --ftail FTAIL Output file footer 1289s # --fprod FPROD Put out TEXT every time a new input file is being 1289s # processed. 1289s # --eprod EPROD Per enum text, produced prior to value iterations 1289s # --vhead VHEAD Value header, produced before iterating over enum 1289s # values 1289s # --vprod VPROD Value text, produced for each enum value. 1289s # --vtail VTAIL Value tail, produced after iterating over enum values 1289s # --comments COMMENT_TMPL 1289s # Comment structure 1289s # --template TEMPLATE Template file 1289s # --output OUTPUT 1289s # --version, -v Print version information 1289s # 1289s # Production text substitutions: 1289s # @EnumName@ PrefixTheXEnum 1289s # @enum_name@ prefix_the_xenum 1289s # @ENUMNAME@ PREFIX_THE_XENUM 1289s # @ENUMSHORT@ THE_XENUM 1289s # @ENUMPREFIX@ PREFIX 1289s # @enumsince@ the user-provided since value given 1289s # @VALUENAME@ PREFIX_THE_XVALUE 1289s # @valuenick@ the-xvalue 1289s # @valuenum@ the integer value (limited support, Since: 2.26) 1289s # @type@ either enum or flags 1289s # @Type@ either Enum or Flags 1289s # @TYPE@ either ENUM or FLAGS 1289s # @filename@ name of current input file 1289s # @basename@ base name of the current input file (Since: 2.22) 1289s # Error: 1289s ok 12 __main__.TestMkenums.test_no_args 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpzfwri1d7 1289s # rspfile: False 1289s # Running: ['/usr/bin/glib-mkenums'] 1289s # Return code: 0 1289s # Output: 1289s # /* 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. */ 1289s # 1289s # 1289s # /* Generated data ends here */ 1289s # Error: 1289s ok 13 __main__.TestMkenums.test_no_headers 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmp14_kod76 1289s # rspfile: False 1289s # /tmp/tmp14_kod76/tmpixdkizwe.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp14_kod76/tmpixdkizwe.template'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 14 __main__.TestMkenums.test_no_nick 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpfjrcl06u 1289s # rspfile: False 1289s # /tmp/tmpfjrcl06u/tmpvktlygvn.h: 1289s # typedef enum { 1289s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1289s # } GeglSamplerType; 1289s # 1289s # /tmp/tmpfjrcl06u/tmpe9d6l71h.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpfjrcl06u/tmpe9d6l71h.template', '/tmp/tmpfjrcl06u/tmpvktlygvn.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpfjrcl06u/tmpvktlygvn.h 1289s # basename: tmpvktlygvn.h 1289s # enumeration-production 1289s # EnumName: GeglSamplerType 1289s # enum_name: gegl_sampler_type 1289s # ENUMNAME: GEGL_SAMPLER_TYPE 1289s # ENUMSHORT: SAMPLER_TYPE 1289s # ENUMPREFIX: GEGL 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: GeglSamplerType 1289s # enum_name: gegl_sampler_type 1289s # ENUMNAME: GEGL_SAMPLER_TYPE 1289s # ENUMSHORT: SAMPLER_TYPE 1289s # ENUMPREFIX: GEGL 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: GEGL_SAMPLER_NEAREST 1289s # valuenick: nearest 1289s # valuenum: 0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: GeglSamplerType 1289s # enum_name: gegl_sampler_type 1289s # ENUMNAME: GEGL_SAMPLER_TYPE 1289s # ENUMSHORT: SAMPLER_TYPE 1289s # ENUMPREFIX: GEGL 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpnvzqapgc 1289s # rspfile: False 1289s # /tmp/tmpnvzqapgc/tmpsl9vxsk6.h: 1289s # /* Copyright © La Peña */ 1289s # typedef enum { 1289s # ENUM_VALUE 1289s # } SomeEnumIdentifier; 1289s # 1289s # /tmp/tmpnvzqapgc/tmpykm15yya.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnvzqapgc/tmpykm15yya.template', '/tmp/tmpnvzqapgc/tmpsl9vxsk6.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpnvzqapgc/tmpsl9vxsk6.h 1289s # basename: tmpsl9vxsk6.h 1289s # enumeration-production 1289s # EnumName: SomeEnumIdentifier 1289s # enum_name: some_enum_identifier 1289s # ENUMNAME: SOME_ENUM_IDENTIFIER 1289s # ENUMSHORT: ENUM_IDENTIFIER 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: SomeEnumIdentifier 1289s # enum_name: some_enum_identifier 1289s # ENUMNAME: SOME_ENUM_IDENTIFIER 1289s # ENUMSHORT: ENUM_IDENTIFIER 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: ENUM_VALUE 1289s # valuenick: value 1289s # valuenum: 0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: SomeEnumIdentifier 1289s # enum_name: some_enum_identifier 1289s # ENUMNAME: SOME_ENUM_IDENTIFIER 1289s # ENUMSHORT: ENUM_IDENTIFIER 1289s # ENUMPREFIX: SOME 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1289s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1289s ok 16 __main__.TestMkenums.test_reproducible 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmp35zhjh19 1289s # rspfile: False 1289s # /tmp/tmp35zhjh19/tmpj9ewnfjg.template: template 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp35zhjh19/tmpj9ewnfjg.template', '/tmp/tmp35zhjh19/tmpircwby521.h', '/tmp/tmp35zhjh19/tmpqhwhf7k82.h'] 1289s # Return code: 0 1289s # Output: 1289s # /* 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. */ 1289s # 1289s # 1289s # /* Generated data ends here */ 1289s # Error: 1289s # 1289s # /tmp/tmp35zhjh19/tmphry5_p_j.template: template 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp35zhjh19/tmphry5_p_j.template', '/tmp/tmp35zhjh19/tmpqhwhf7k82.h', '/tmp/tmp35zhjh19/tmpircwby521.h'] 1289s # Return code: 0 1289s # Output: 1289s # /* 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. */ 1289s # 1289s # 1289s # /* Generated data ends here */ 1289s # Error: 1289s ok 17 __main__.TestMkenums.test_since 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmplytz_61e 1289s # rspfile: False 1289s # /tmp/tmplytz_61e/tmp6p_e2xy4.h: 1289s # typedef enum { /*< since=1.0 >*/ 1289s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1289s # } QmiWmsMessageProtocol; 1289s # 1289s # /tmp/tmplytz_61e/tmp9g0x56nh.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmplytz_61e/tmp9g0x56nh.template', '/tmp/tmplytz_61e/tmp6p_e2xy4.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmplytz_61e/tmp6p_e2xy4.h 1289s # basename: tmp6p_e2xy4.h 1289s # enumeration-production 1289s # EnumName: QmiWmsMessageProtocol 1289s # enum_name: qmi_wms_message_protocol 1289s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1289s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1289s # ENUMPREFIX: QMI 1289s # enumsince: 1.0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: QmiWmsMessageProtocol 1289s # enum_name: qmi_wms_message_protocol 1289s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1289s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1289s # ENUMPREFIX: QMI 1289s # enumsince: 1.0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1289s # valuenick: cdma 1289s # valuenum: 0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: QmiWmsMessageProtocol 1289s # enum_name: qmi_wms_message_protocol 1289s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1289s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1289s # ENUMPREFIX: QMI 1289s # enumsince: 1.0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 18 __main__.TestMkenums.test_with_double_quotes 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpyatmat7d 1289s # rspfile: False 1289s # /tmp/tmpyatmat7d/tmppsd6rg1w.h: 1289s # typedef enum { 1289s # FOO_VALUE /*< nick="eek, a comma" >*/ 1289s # } Foo; 1289s # 1289s # /tmp/tmpyatmat7d/tmphyjysap7.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpyatmat7d/tmphyjysap7.template', '/tmp/tmpyatmat7d/tmppsd6rg1w.h'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpyatmat7d/tmppsd6rg1w.h 1289s # basename: tmppsd6rg1w.h 1289s # enumeration-production 1289s # EnumName: Foo 1289s # enum_name: foo_ 1289s # ENUMNAME: FOO_ 1289s # ENUMSHORT: 1289s # ENUMPREFIX: FOO 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: Foo 1289s # enum_name: foo_ 1289s # ENUMNAME: FOO_ 1289s # ENUMSHORT: 1289s # ENUMPREFIX: FOO 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: FOO_VALUE 1289s # valuenick: eek, a comma 1289s # valuenum: 0 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: Foo 1289s # enum_name: foo_ 1289s # ENUMNAME: FOO_ 1289s # ENUMSHORT: 1289s # ENUMPREFIX: FOO 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 19 __main__.TestRspMkenums.test_available_in 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpe4rkfodf 1289s # rspfile: True 1289s # /tmp/tmpe4rkfodf/tmpmoi0fpro.h: 1289s # typedef enum { 1289s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1289s # } GDBusServerFlags; 1289s # 1289s # /tmp/tmpe4rkfodf/tmplw0c67uj.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Response file contains: --template /tmp/tmpe4rkfodf/tmplw0c67uj.template /tmp/tmpe4rkfodf/tmpmoi0fpro.h 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpe4rkfodf/tmppjnkv__1'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpe4rkfodf/tmpmoi0fpro.h 1289s # basename: tmpmoi0fpro.h 1289s # enumeration-production 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-header 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-production 1289s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1289s # valuenick: user 1289s # valuenum: 4 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-tail 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmp3wc1nvzz 1289s # rspfile: True 1289s # /tmp/tmp3wc1nvzz/tmp3lw_u7jx.h: 1289s # typedef enum { 1289s # ENUM_VALUE_WITH_COMMA = ',', 1289s # } TestCommaEnum; 1289s # 1289s # /tmp/tmp3wc1nvzz/tmpq0o6oe31.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Response file contains: --template /tmp/tmp3wc1nvzz/tmpq0o6oe31.template /tmp/tmp3wc1nvzz/tmp3lw_u7jx.h 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3wc1nvzz/tmp8tm4rh89'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmp3wc1nvzz/tmp3lw_u7jx.h 1289s # basename: tmp3lw_u7jx.h 1289s # enumeration-production 1289s # EnumName: TestCommaEnum 1289s # enum_name: test_comma_enum 1289s # ENUMNAME: TEST_COMMA_ENUM 1289s # ENUMSHORT: COMMA_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-header 1289s # EnumName: TestCommaEnum 1289s # enum_name: test_comma_enum 1289s # ENUMNAME: TEST_COMMA_ENUM 1289s # ENUMSHORT: COMMA_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-production 1289s # VALUENAME: ENUM_VALUE_WITH_COMMA 1289s # valuenick: comma 1289s # valuenum: 44 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # value-tail 1289s # EnumName: TestCommaEnum 1289s # enum_name: test_comma_enum 1289s # ENUMNAME: TEST_COMMA_ENUM 1289s # ENUMSHORT: COMMA_ENUM 1289s # ENUMPREFIX: TEST 1289s # enumsince: 1289s # type: enum 1289s # Type: Enum 1289s # TYPE: ENUM 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 21 __main__.TestRspMkenums.test_deprecated_in 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmplch3ssaa 1289s # rspfile: True 1289s # /tmp/tmplch3ssaa/tmpnhpx7fre.h: 1289s # typedef enum { 1289s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1289s # } GDBusServerFlags; 1289s # 1289s # /tmp/tmplch3ssaa/tmp3oa_a04c.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Response file contains: --template /tmp/tmplch3ssaa/tmp3oa_a04c.template /tmp/tmplch3ssaa/tmpnhpx7fre.h 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmplch3ssaa/tmpd5k1j24z'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmplch3ssaa/tmpnhpx7fre.h 1289s # basename: tmpnhpx7fre.h 1289s # enumeration-production 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-header 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-production 1289s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1289s # valuenick: user 1289s # valuenum: 4 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-tail 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpacnwrpiz 1289s # rspfile: True 1289s # /tmp/tmpacnwrpiz/tmp0vp94ag6.h: 1289s # typedef enum { 1289s # 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) 1289s # } GDBusServerFlags; 1289s # 1289s # /tmp/tmpacnwrpiz/tmpnknaqcbj.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Response file contains: --template /tmp/tmpacnwrpiz/tmpnknaqcbj.template /tmp/tmpacnwrpiz/tmp0vp94ag6.h 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpacnwrpiz/tmprbqaxri1'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-production 1289s # filename: /tmp/tmpacnwrpiz/tmp0vp94ag6.h 1289s # basename: tmp0vp94ag6.h 1289s # enumeration-production 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-header 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-production 1289s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1289s # valuenick: user 1289s # valuenum: 4 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # value-tail 1289s # EnumName: GDBusServerFlags 1289s # enum_name: g_dbus_server_flags 1289s # ENUMNAME: G_DBUS_SERVER_FLAGS 1289s # ENUMSHORT: DBUS_SERVER_FLAGS 1289s # ENUMPREFIX: G 1289s # enumsince: 1289s # type: flags 1289s # Type: Flags 1289s # TYPE: FLAGS 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s # Executing: glib/mkenums.py.test 1289s ok 23 __main__.TestRspMkenums.test_empty_header 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmp2hoz9_u2 1289s # rspfile: True 1289s # /tmp/tmp2hoz9_u2/tmppvjo4m4k.h: 1289s # /tmp/tmp2hoz9_u2/tmpyuchn2fz.template: 1289s # /*** BEGIN file-header ***/ 1289s # file-header 1289s # /*** END file-header ***/ 1289s # 1289s # /*** BEGIN file-production ***/ 1289s # file-production 1289s # filename: @filename@ 1289s # basename: @basename@ 1289s # /*** END file-production ***/ 1289s # 1289s # /*** BEGIN enumeration-production ***/ 1289s # enumeration-production 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END enumeration-production ***/ 1289s # 1289s # /*** BEGIN value-header ***/ 1289s # value-header 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-header ***/ 1289s # 1289s # /*** BEGIN value-production ***/ 1289s # value-production 1289s # VALUENAME: @VALUENAME@ 1289s # valuenick: @valuenick@ 1289s # valuenum: @valuenum@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-production ***/ 1289s # 1289s # /*** BEGIN value-tail ***/ 1289s # value-tail 1289s # EnumName: @EnumName@ 1289s # enum_name: @enum_name@ 1289s # ENUMNAME: @ENUMNAME@ 1289s # ENUMSHORT: @ENUMSHORT@ 1289s # ENUMPREFIX: @ENUMPREFIX@ 1289s # enumsince: @enumsince@ 1289s # type: @type@ 1289s # Type: @Type@ 1289s # TYPE: @TYPE@ 1289s # /*** END value-tail ***/ 1289s # 1289s # /*** BEGIN comment ***/ 1289s # comment 1289s # comment: @comment@ 1289s # /*** END comment ***/ 1289s # 1289s # /*** BEGIN file-tail ***/ 1289s # file-tail 1289s # /*** END file-tail ***/ 1289s # 1289s # Response file contains: --template /tmp/tmp2hoz9_u2/tmpyuchn2fz.template /tmp/tmp2hoz9_u2/tmppvjo4m4k.h 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2hoz9_u2/tmpviuheh7_'] 1289s # Return code: 0 1289s # Output: 1289s # comment 1289s # 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. 1289s # 1289s # 1289s # file-header 1289s # file-tail 1289s # 1289s # comment 1289s # comment: Generated data ends here 1289s # Error: 1289s ok 24 __main__.TestRspMkenums.test_empty_template 1289s # glib-mkenums: /usr/bin/glib-mkenums 1289s # tmpdir: /tmp/tmpptf__jt4 1289s # rspfile: True 1289s # /tmp/tmpptf__jt4/tmp4mrwgb13.template: 1289s # Response file contains: --template /tmp/tmpptf__jt4/tmp4mrwgb13.template 1289s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpptf__jt4/tmpsfvbiph8'] 1289s # Return code: 0 1289s # Output: 1289s # /* 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. */ 1289s # 1289s # 1289s # /* Generated data ends here */ 1289s # Error: 1290s ok 25 __main__.TestRspMkenums.test_enum_name 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpg0w62tji 1290s # rspfile: True 1290s # /tmp/tmpg0w62tji/tmp96x401n2.h: 1290s # typedef enum _SomeEnumIdentifier { 1290s # ENUM_VALUE 1290s # } SomeEnumIdentifier; 1290s # 1290s # /tmp/tmpg0w62tji/tmpjlwjxq3m.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmpg0w62tji/tmpjlwjxq3m.template /tmp/tmpg0w62tji/tmp96x401n2.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg0w62tji/tmpd5l4zbyq'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmpg0w62tji/tmp96x401n2.h 1290s # basename: tmp96x401n2.h 1290s # enumeration-production 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: ENUM_VALUE 1290s # valuenick: value 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 26 __main__.TestRspMkenums.test_enum_private_public 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmp970l3bod 1290s # rspfile: True 1290s # /tmp/tmp970l3bod/tmp3rugjisr.h: 1290s # typedef enum { 1290s # ENUM_VALUE_PUBLIC1, 1290s # /*< private >*/ 1290s # ENUM_VALUE_PRIVATE, 1290s # } SomeEnumA 1290s # 1290s # /tmp/tmp970l3bod/tmpnlrnhpb6.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmp970l3bod/tmpnlrnhpb6.template /tmp/tmp970l3bod/tmp3rugjisr.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp970l3bod/tmp7ky409nt'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmp970l3bod/tmp3rugjisr.h 1290s # basename: tmp3rugjisr.h 1290s # enumeration-production 1290s # EnumName: SomeEnumA 1290s # enum_name: some_enum_a 1290s # ENUMNAME: SOME_ENUM_A 1290s # ENUMSHORT: ENUM_A 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: SomeEnumA 1290s # enum_name: some_enum_a 1290s # ENUMNAME: SOME_ENUM_A 1290s # ENUMSHORT: ENUM_A 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: ENUM_VALUE_PUBLIC1 1290s # valuenick: public1 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: SomeEnumA 1290s # enum_name: some_enum_a 1290s # ENUMNAME: SOME_ENUM_A 1290s # ENUMSHORT: ENUM_A 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s # 1290s # /tmp/tmp970l3bod/tmpn0m_oypf.h: 1290s # typedef enum { 1290s # /*< private >*/ 1290s # ENUM_VALUE_PRIVATE, 1290s # /*< public >*/ 1290s # ENUM_VALUE_PUBLIC2, 1290s # } SomeEnumB; 1290s # 1290s # /tmp/tmp970l3bod/tmpckk7neh4.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmp970l3bod/tmpckk7neh4.template /tmp/tmp970l3bod/tmpn0m_oypf.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp970l3bod/tmpe3bi19f3'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmp970l3bod/tmpn0m_oypf.h 1290s # basename: tmpn0m_oypf.h 1290s # enumeration-production 1290s # EnumName: SomeEnumB 1290s # enum_name: some_enum_b 1290s # ENUMNAME: SOME_ENUM_B 1290s # ENUMSHORT: ENUM_B 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: SomeEnumB 1290s # enum_name: some_enum_b 1290s # ENUMNAME: SOME_ENUM_B 1290s # ENUMSHORT: ENUM_B 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: ENUM_VALUE_PUBLIC2 1290s # valuenick: public2 1290s # valuenum: 1 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: SomeEnumB 1290s # enum_name: some_enum_b 1290s # ENUMNAME: SOME_ENUM_B 1290s # ENUMSHORT: ENUM_B 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmp5pmy_c8d 1290s # rspfile: True 1290s # /tmp/tmp5pmy_c8d/tmp5vmak4xb.h: 1290s # typedef enum { 1290s # /*< private >*/ 1290s # ENUM_VALUE_PRIVATE = 5, 1290s # /*< public >*/ 1290s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1290s # } TestSymbolicEnum; 1290s # 1290s # /tmp/tmp5pmy_c8d/tmpid6j97sy.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmp5pmy_c8d/tmpid6j97sy.template /tmp/tmp5pmy_c8d/tmp5vmak4xb.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5pmy_c8d/tmp3bo2qbik'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmp5pmy_c8d/tmp5vmak4xb.h 1290s # basename: tmp5vmak4xb.h 1290s # enumeration-production 1290s # EnumName: TestSymbolicEnum 1290s # enum_name: test_symbolic_enum 1290s # ENUMNAME: TEST_SYMBOLIC_ENUM 1290s # ENUMSHORT: SYMBOLIC_ENUM 1290s # ENUMPREFIX: TEST 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: TestSymbolicEnum 1290s # enum_name: test_symbolic_enum 1290s # ENUMNAME: TEST_SYMBOLIC_ENUM 1290s # ENUMSHORT: SYMBOLIC_ENUM 1290s # ENUMPREFIX: TEST 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: ENUM_VALUE_PUBLIC 1290s # valuenick: public 1290s # valuenum: 7 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: TestSymbolicEnum 1290s # enum_name: test_symbolic_enum 1290s # ENUMNAME: TEST_SYMBOLIC_ENUM 1290s # ENUMSHORT: SYMBOLIC_ENUM 1290s # ENUMPREFIX: TEST 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpbmy9mwd3 1290s # rspfile: True 1290s # /tmp/tmpbmy9mwd3/tmpyv6a_p2x.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-tail ***/ 1290s # Response file contains: --template /tmp/tmpbmy9mwd3/tmpyv6a_p2x.template 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbmy9mwd3/tmp102pvcm0'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # file-tail 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s # WARNING: @filename@ used in file-header section. 1290s # WARNING: @basename@ used in file-header section. 1290s # WARNING: @filename@ used in file-tail section. 1290s # WARNING: @basename@ used in file-tail section. 1290s ok 29 __main__.TestRspMkenums.test_help 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpjqf082ha 1290s # rspfile: True 1290s # Response file contains: --help 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjqf082ha/tmp6lvi2pho'] 1290s # Return code: 0 1290s # Output: 1290s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1290s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1290s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1290s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1290s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1290s # [--output OUTPUT] [--version] 1290s # [args ...] 1290s # 1290s # positional arguments: 1290s # args One or more input files, or a single argument 1290s # @rspfile_path pointing to a file that contains the 1290s # actual arguments 1290s # 1290s # options: 1290s # -h, --help show this help message and exit 1290s # --identifier-prefix IDPREFIX 1290s # Identifier prefix 1290s # --symbol-prefix SYMPREFIX 1290s # Symbol prefix 1290s # --fhead FHEAD Output file header 1290s # --ftail FTAIL Output file footer 1290s # --fprod FPROD Put out TEXT every time a new input file is being 1290s # processed. 1290s # --eprod EPROD Per enum text, produced prior to value iterations 1290s # --vhead VHEAD Value header, produced before iterating over enum 1290s # values 1290s # --vprod VPROD Value text, produced for each enum value. 1290s # --vtail VTAIL Value tail, produced after iterating over enum values 1290s # --comments COMMENT_TMPL 1290s # Comment structure 1290s # --template TEMPLATE Template file 1290s # --output OUTPUT 1290s # --version, -v Print version information 1290s # 1290s # Production text substitutions: 1290s # @EnumName@ PrefixTheXEnum 1290s # @enum_name@ prefix_the_xenum 1290s # @ENUMNAME@ PREFIX_THE_XENUM 1290s # @ENUMSHORT@ THE_XENUM 1290s # @ENUMPREFIX@ PREFIX 1290s # @enumsince@ the user-provided since value given 1290s # @VALUENAME@ PREFIX_THE_XVALUE 1290s # @valuenick@ the-xvalue 1290s # @valuenum@ the integer value (limited support, Since: 2.26) 1290s # @type@ either enum or flags 1290s # @Type@ either Enum or Flags 1290s # @TYPE@ either ENUM or FLAGS 1290s # @filename@ name of current input file 1290s # @basename@ base name of the current input file (Since: 2.22) 1290s # Error: 1290s ok 30 __main__.TestRspMkenums.test_no_args 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpk3sc1qft 1290s # rspfile: True 1290s # Response file contains: 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpk3sc1qft/tmpsfev7xb6'] 1290s # Return code: 0 1290s # Output: 1290s # /* 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. */ 1290s # 1290s # 1290s # /* Generated data ends here */ 1290s # Error: 1290s ok 31 __main__.TestRspMkenums.test_no_headers 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpgalr5foy 1290s # rspfile: True 1290s # /tmp/tmpgalr5foy/tmp3kjryra0.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmpgalr5foy/tmp3kjryra0.template 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgalr5foy/tmps7qxm4_2'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 32 __main__.TestRspMkenums.test_no_nick 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpdi75cvur 1290s # rspfile: True 1290s # /tmp/tmpdi75cvur/tmppp0wyjs0.h: 1290s # typedef enum { 1290s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1290s # } GeglSamplerType; 1290s # 1290s # /tmp/tmpdi75cvur/tmprm1ezrb6.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmpdi75cvur/tmprm1ezrb6.template /tmp/tmpdi75cvur/tmppp0wyjs0.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpdi75cvur/tmphtscnxgt'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmpdi75cvur/tmppp0wyjs0.h 1290s # basename: tmppp0wyjs0.h 1290s # enumeration-production 1290s # EnumName: GeglSamplerType 1290s # enum_name: gegl_sampler_type 1290s # ENUMNAME: GEGL_SAMPLER_TYPE 1290s # ENUMSHORT: SAMPLER_TYPE 1290s # ENUMPREFIX: GEGL 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: GeglSamplerType 1290s # enum_name: gegl_sampler_type 1290s # ENUMNAME: GEGL_SAMPLER_TYPE 1290s # ENUMSHORT: SAMPLER_TYPE 1290s # ENUMPREFIX: GEGL 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: GEGL_SAMPLER_NEAREST 1290s # valuenick: nearest 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: GeglSamplerType 1290s # enum_name: gegl_sampler_type 1290s # ENUMNAME: GEGL_SAMPLER_TYPE 1290s # ENUMSHORT: SAMPLER_TYPE 1290s # ENUMPREFIX: GEGL 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpctywy_ce 1290s # rspfile: True 1290s # /tmp/tmpctywy_ce/tmp325pq2dq.h: 1290s # /* Copyright © La Peña */ 1290s # typedef enum { 1290s # ENUM_VALUE 1290s # } SomeEnumIdentifier; 1290s # 1290s # /tmp/tmpctywy_ce/tmp02ubll4u.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmpctywy_ce/tmp02ubll4u.template /tmp/tmpctywy_ce/tmp325pq2dq.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpctywy_ce/tmp4pgv1pmk'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmpctywy_ce/tmp325pq2dq.h 1290s # basename: tmp325pq2dq.h 1290s # enumeration-production 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: ENUM_VALUE 1290s # valuenick: value 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: SomeEnumIdentifier 1290s # enum_name: some_enum_identifier 1290s # ENUMNAME: SOME_ENUM_IDENTIFIER 1290s # ENUMSHORT: ENUM_IDENTIFIER 1290s # ENUMPREFIX: SOME 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1290s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1290s ok 34 __main__.TestRspMkenums.test_reproducible 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpyjxbtevb 1290s # rspfile: True 1290s # /tmp/tmpyjxbtevb/tmpc84wraso.template: template 1290s # Response file contains: --template /tmp/tmpyjxbtevb/tmpc84wraso.template /tmp/tmpyjxbtevb/tmptpyylx6l1.h /tmp/tmpyjxbtevb/tmp6j927pwx2.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpyjxbtevb/tmpskr94rz3'] 1290s # Return code: 0 1290s # Output: 1290s # /* 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. */ 1290s # 1290s # 1290s # /* Generated data ends here */ 1290s # Error: 1290s # 1290s # /tmp/tmpyjxbtevb/tmplzmkoqu3.template: template 1290s # Response file contains: --template /tmp/tmpyjxbtevb/tmplzmkoqu3.template /tmp/tmpyjxbtevb/tmp6j927pwx2.h /tmp/tmpyjxbtevb/tmptpyylx6l1.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpyjxbtevb/tmpat77uorh'] 1290s # Return code: 0 1290s # Output: 1290s # /* 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. */ 1290s # 1290s # 1290s # /* Generated data ends here */ 1290s # Error: 1290s ok 35 __main__.TestRspMkenums.test_since 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmpkr_pbuiu 1290s # rspfile: True 1290s # /tmp/tmpkr_pbuiu/tmp7a1uz5ui.h: 1290s # typedef enum { /*< since=1.0 >*/ 1290s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1290s # } QmiWmsMessageProtocol; 1290s # 1290s # /tmp/tmpkr_pbuiu/tmpenz0w7bq.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmpkr_pbuiu/tmpenz0w7bq.template /tmp/tmpkr_pbuiu/tmp7a1uz5ui.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkr_pbuiu/tmpis17kw83'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmpkr_pbuiu/tmp7a1uz5ui.h 1290s # basename: tmp7a1uz5ui.h 1290s # enumeration-production 1290s # EnumName: QmiWmsMessageProtocol 1290s # enum_name: qmi_wms_message_protocol 1290s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1290s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1290s # ENUMPREFIX: QMI 1290s # enumsince: 1.0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: QmiWmsMessageProtocol 1290s # enum_name: qmi_wms_message_protocol 1290s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1290s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1290s # ENUMPREFIX: QMI 1290s # enumsince: 1.0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1290s # valuenick: cdma 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: QmiWmsMessageProtocol 1290s # enum_name: qmi_wms_message_protocol 1290s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1290s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1290s # ENUMPREFIX: QMI 1290s # enumsince: 1.0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1290s # glib-mkenums: /usr/bin/glib-mkenums 1290s # tmpdir: /tmp/tmp0vg4bo24 1290s # rspfile: True 1290s # /tmp/tmp0vg4bo24/tmpeevw4jnd.h: 1290s # typedef enum { 1290s # FOO_VALUE /*< nick="eek, a comma" >*/ 1290s # } Foo; 1290s # 1290s # /tmp/tmp0vg4bo24/tmpnevy3af6.template: 1290s # /*** BEGIN file-header ***/ 1290s # file-header 1290s # /*** END file-header ***/ 1290s # 1290s # /*** BEGIN file-production ***/ 1290s # file-production 1290s # filename: @filename@ 1290s # basename: @basename@ 1290s # /*** END file-production ***/ 1290s # 1290s # /*** BEGIN enumeration-production ***/ 1290s # enumeration-production 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END enumeration-production ***/ 1290s # 1290s # /*** BEGIN value-header ***/ 1290s # value-header 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-header ***/ 1290s # 1290s # /*** BEGIN value-production ***/ 1290s # value-production 1290s # VALUENAME: @VALUENAME@ 1290s # valuenick: @valuenick@ 1290s # valuenum: @valuenum@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-production ***/ 1290s # 1290s # /*** BEGIN value-tail ***/ 1290s # value-tail 1290s # EnumName: @EnumName@ 1290s # enum_name: @enum_name@ 1290s # ENUMNAME: @ENUMNAME@ 1290s # ENUMSHORT: @ENUMSHORT@ 1290s # ENUMPREFIX: @ENUMPREFIX@ 1290s # enumsince: @enumsince@ 1290s # type: @type@ 1290s # Type: @Type@ 1290s # TYPE: @TYPE@ 1290s # /*** END value-tail ***/ 1290s # 1290s # /*** BEGIN comment ***/ 1290s # comment 1290s # comment: @comment@ 1290s # /*** END comment ***/ 1290s # 1290s # /*** BEGIN file-tail ***/ 1290s # file-tail 1290s # /*** END file-tail ***/ 1290s # 1290s # Response file contains: --template /tmp/tmp0vg4bo24/tmpnevy3af6.template /tmp/tmp0vg4bo24/tmpeevw4jnd.h 1290s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0vg4bo24/tmp9jhwm88m'] 1290s # Return code: 0 1290s # Output: 1290s # comment 1290s # 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. 1290s # 1290s # 1290s # file-header 1290s # file-production 1290s # filename: /tmp/tmp0vg4bo24/tmpeevw4jnd.h 1290s # basename: tmpeevw4jnd.h 1290s # enumeration-production 1290s # EnumName: Foo 1290s # enum_name: foo_ 1290s # ENUMNAME: FOO_ 1290s # ENUMSHORT: 1290s # ENUMPREFIX: FOO 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-header 1290s # EnumName: Foo 1290s # enum_name: foo_ 1290s # ENUMNAME: FOO_ 1290s # ENUMSHORT: 1290s # ENUMPREFIX: FOO 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-production 1290s # VALUENAME: FOO_VALUE 1290s # valuenick: eek, a comma 1290s # valuenum: 0 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # value-tail 1290s # EnumName: Foo 1290s # enum_name: foo_ 1290s # ENUMNAME: FOO_ 1290s # ENUMSHORT: 1290s # ENUMPREFIX: FOO 1290s # enumsince: 1290s # type: enum 1290s # Type: Enum 1290s # TYPE: ENUM 1290s # file-tail 1290s # 1290s # comment 1290s # comment: Generated data ends here 1290s # Error: 1290s 1..36 1290s ok - glib/mkenums.py.test 1290s # Running test: glib/portal-support-snap-classic.test 1290s TAP version 14 1290s # random seed: R02Sd74175a05635d107c1d0a924408ab2aa 1290s 1..3 1290s # Start of portal-support tests 1290s # Start of snap-classic tests 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl/.dirs/runtime 1290s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/no-snapctl: No such file or directory 1290s ok 1 /portal-support/snap-classic/no-snapctl 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/runtime 1290s # Created snap.yaml in /tmp/test_portal-support-snap-classic_ACLC62/meta/snap.yaml 1290s # Created snapctl in /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none/.dirs/runtime/snapctl 1290s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/none: No such file or directory 1290s ok 2 /portal-support/snap-classic/none 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/runtime 1290s # Created snap.yaml in /tmp/test_portal-support-snap-classic_ACLC62/meta/snap.yaml 1290s # Created snapctl in /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all/.dirs/runtime/snapctl 1290s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_ACLC62/portal-support/snap-classic/all: No such file or directory 1290s ok 3 /portal-support/snap-classic/all 1290s # End of snap-classic tests 1290s # End of portal-support tests 1290s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_ACLC62: No such file or directory 1290s ok - glib/portal-support-snap-classic.test 1290s # Running test: glib/file-thumbnail.test 1290s TAP version 14 1290s # random seed: R02S27a6b21d160838d99dd1b2a6366595d7 1290s 1..7 1290s # Start of file-thumbnail tests 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/runtime 1290s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 1 /file-thumbnail/fail 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 2 /file-thumbnail/size-priority 1290s # Start of valid tests 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 3 /file-thumbnail/valid/normal 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 4 /file-thumbnail/valid/large 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 5 /file-thumbnail/valid/x-large 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 6 /file-thumbnail/valid/xx-large 1290s # End of valid tests 1290s # Start of unknown tests 1290s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/home 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/cache 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/system-config2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/config 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/system-data2 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/data 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/state 1290s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/runtime 1290s # Created test thumbnail at /tmp/test_file-thumbnail_N8EC62/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1290s ok 7 /file-thumbnail/unknown/super-large 1290s # End of unknown tests 1290s # End of file-thumbnail tests 1290s ok - glib/file-thumbnail.test 1290s # Running test: glib/unix-streams.test 1290s TAP version 14 1290s # random seed: R02S6358f58e9290d32d6bf0cdb49215c035 1290s 1..9 1290s # Start of unix-streams tests 1290s ok 1 /unix-streams/basic 1291s ok 2 /unix-streams/pipe-io-test 1291s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1291s ok 3 /unix-streams/nonblocking-io-test 1291s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1291s ok 4 /unix-streams/read_write 1291s ok - glib/unix-streams.test 1291s ok 5 /unix-streams/read_writev 1291s ok 6 /unix-streams/write-wouldblock 1291s ok 7 /unix-streams/writev-wouldblock 1291s ok 8 /unix-streams/write-async-wouldblock 1291s ok 9 /unix-streams/writev-async-wouldblock 1291s # End of unix-streams tests 1291s # Running test: glib/utils-isolated.test 1291s TAP version 14 1291s # random seed: R02Sd910c87c8e8c0d78ad68a479e2be9f06 1291s 1..11 1291s # Start of utils-isolated tests 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/tmp-dir/.dirs/runtime 1291s ok 1 /utils-isolated/tmp-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/home-dir/.dirs/runtime 1291s ok 2 /utils-isolated/home-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/user-cache-dir/.dirs/runtime 1291s ok 3 /utils-isolated/user-cache-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/system-config-dirs/.dirs/runtime 1291s ok 4 /utils-isolated/system-config-dirs 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/user-config-dir/.dirs/runtime 1291s ok 5 /utils-isolated/user-config-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/system-data-dirs/.dirs/runtime 1291s ok 6 /utils-isolated/system-data-dirs 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/user-data-dir/.dirs/runtime 1291s ok 7 /utils-isolated/user-data-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/user-state-dir/.dirs/runtime 1291s ok - glib/utils-isolated.test 1291s # Running test: glib/gdbus-message.test 1291s ok - glib/gdbus-message.test 1291s # Running test: glib/deprecated-properties.test 1291s ok - glib/deprecated-properties.test 1291s # Running test: glib/once.test 1291s ok 8 /utils-isolated/user-state-dir 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/user-runtime-dir/.dirs/runtime 1291s ok 9 /utils-isolated/user-runtime-dir 1291s # Start of cleanup tests 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/runtime 1291s Unable to clean up temporary directory /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1291s Unable to clean up temporary directory /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1291s Unable to clean up temporary directory /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/handles-errors: Directory not empty 1291s ok 10 /utils-isolated/cleanup/handles-errors 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1291s Unable to clean up temporary directory /tmp/test_utils-isolated_4F9952/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1291s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1291s # End of cleanup tests 1291s # End of utils-isolated tests 1291s TAP version 14 1291s # random seed: R02Sfa0ca8fabb51ce162584406673646b54 1291s 1..3 1291s # Start of gdbus tests 1291s # Start of message tests 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_5YKB62/gdbus/message/lock/.dirs/runtime 1291s ok 1 /gdbus/message/lock 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_5YKB62/gdbus/message/copy/.dirs/runtime 1291s ok 2 /gdbus/message/copy 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_5YKB62/gdbus/message/bytes-needed/.dirs/runtime 1291s # Vector: 0 1291s # Vector: 1 1291s # Vector: 2 1291s # Vector: 3 1291s # Vector: 4 1291s # Vector: 5 1291s ok 3 /gdbus/message/bytes-needed 1291s # End of message tests 1291s # End of gdbus tests 1291s TAP version 14 1291s # random seed: R02Sfa02ce160bb433f7568dc01a6bfef6c8 1291s 1..3 1291s # Start of deprecated-properties tests 1291s ok 1 /deprecated-properties/construct 1291s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1291s ok 2 /deprecated-properties/default-construct 1291s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1291s ok 3 /deprecated-properties/set 1291s # End of deprecated-properties tests 1291s TAP version 14 1291s # random seed: R02S9398d481daa4d26cd06a5e011c05368d 1291s 1..5 1291s # Start of once tests 1291s # /once/single-threaded summary: Test g_once() usage from a single thread 1291s ok 1 /once/single-threaded 1291s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1291s ok 2 /once/multi-threaded 1291s # End of once tests 1291s # Start of once-init tests 1291s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1291s ok 3 /once-init/single-threaded 1291s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1291s ok 4 /once-init/multi-threaded 1291s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1291s ok 5 /once-init/string 1291s # End of once-init tests 1291s TAP version 14 1291s # random seed: R02Sb65f5793118cd8fc3240c8fea32be799 1291s 1..2 1291s # Start of io-channel tests 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_QN6252/io-channel/read-write/.dirs/runtime 1291s # Line one 1291s # 1291s # Line two 1291s # 1291s # Line three 1291s # 1291s # /* Hello */ 1291s # 1291s # \x1234\x567890\x6666 1291s # 1291s # read 62 bytes, wrote 62 bytes 1291s ok 1 /io-channel/read-write 1291s # Start of read-line tests 1291s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/home 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/cache 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/system-config2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/config 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/system-data2 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/data 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/state 1291s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_QN6252/io-channel/read-line/embedded-nuls/.dirs/runtime 1291s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1291s ok 2 /io-channel/read-line/embedded-nuls 1291s # End of read-line tests 1291s # End of io-channel tests 1291s ok - glib/once.test 1291s # Running test: glib/io-channel.test 1291s ok - glib/io-channel.test 1291s # Running test: glib/genmarshal.py.test 1292s TAP version 13 1292s ok 1 __main__.TestGenmarshal.test_empty_list 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmp91fo1_3b 1292s # /tmp/tmp91fo1_3b/tmp7kzsn_9r.list: 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp91fo1_3b/tmp7kzsn_9r.list', '--header', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # #include 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp91fo1_3b/tmp7kzsn_9r.list', '--body', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #include 1292s # 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # Error: 1292s ok 2 __main__.TestGenmarshal.test_help 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmp3wbk8ysu 1292s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1292s # Return code: 0 1292s # Output: 1292s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1292s # [--internal] [--valist-marshallers] [-v] 1292s # [--g-fatal-warnings] [--include-header [HEADER]] 1292s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1292s # [--prototypes] [--header] [--body] [--stdinc | 1292s # --nostdinc] [--quiet | --verbose] 1292s # [FILE ...] 1292s # 1292s # Generate signal marshallers for GObject 1292s # 1292s # positional arguments: 1292s # FILE Files with lists of marshallers to generate, or "-" 1292s # for standard input 1292s # 1292s # options: 1292s # -h, --help show this help message and exit 1292s # --prefix STRING Specify marshaller prefix 1292s # --output FILE Write output into the specified file 1292s # --skip-source Skip source location comments 1292s # --internal Mark generated functions as internal 1292s # --valist-marshallers Generate va_list marshallers 1292s # -v, --version Print version information, and exit 1292s # --g-fatal-warnings Make warnings fatal 1292s # --include-header [HEADER] 1292s # Include the specified header in the body 1292s # --pragma-once Use "pragma once" as the inclusion guard 1292s # -D CPP_DEFINES Pre-processor define 1292s # -U CPP_UNDEFINES Pre-processor undefine 1292s # --prototypes Generate the marshallers prototype in the C code 1292s # --header Generate C headers 1292s # --body Generate C code 1292s # --stdinc Include standard marshallers 1292s # --nostdinc Use standard marshallers 1292s # --quiet Only print warnings and errors 1292s # --verbose Be verbose, and include debugging information 1292s # Error: 1292s ok 3 __main__.TestGenmarshal.test_no_args 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmpeu6zz240 1292s # Running: ['/usr/bin/glib-genmarshal'] 1292s # Return code: 0 1292s # Output: 1292s # 1292s # Error: 1292s ok 4 __main__.TestGenmarshal.test_void_boolean 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmpwv4aacwu 1292s # /tmp/tmpwv4aacwu/tmpjzxtorm2.list: VOID:BOOLEAN 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpwv4aacwu/tmpjzxtorm2.list', '--header', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # #include 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # /* VOID:BOOLEAN (/tmp/tmpwv4aacwu/tmpjzxtorm2.list:1) */ 1292s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpwv4aacwu/tmpjzxtorm2.list', '--body', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #include 1292s # 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # Error: 1292s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmpjbwz03g6 1292s # /tmp/tmpjbwz03g6/tmp18vdkvq1.list: VOID:BOOLEAN,INT64 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpjbwz03g6/tmp18vdkvq1.list', '--header', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # #include 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # /* VOID:BOOLEAN,INT64 (/tmp/tmpjbwz03g6/tmp18vdkvq1.list:1) */ 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1292s # GValue *return_value, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint, 1292s # gpointer marshal_data); 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpjbwz03g6/tmp18vdkvq1.list', '--body', '--quiet'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #include 1292s # 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # 1292s # /* VOID:BOOLEAN,INT64 (/tmp/tmpjbwz03g6/tmp18vdkvq1.list:1) */ 1292s # void 1292s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint G_GNUC_UNUSED, 1292s # gpointer marshal_data) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1292s # gboolean arg1, 1292s # gint64 arg2, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1292s # 1292s # g_return_if_fail (n_param_values == 3); 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = g_value_peek_pointer (param_values + 0); 1292s # } 1292s # else 1292s # { 1292s # data1 = g_value_peek_pointer (param_values + 0); 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # g_marshal_value_peek_boolean (param_values + 1), 1292s # g_marshal_value_peek_int64 (param_values + 2), 1292s # data2); 1292s # } 1292s # Error: 1292s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmp7d06t8jj 1292s # /tmp/tmp7d06t8jj/tmprcpr2b75.list: VOID:PARAM 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp7d06t8jj/tmprcpr2b75.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # /* VOID:PARAM (/tmp/tmp7d06t8jj/tmprcpr2b75.list:1) */ 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1292s # GValue *return_value, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint, 1292s # gpointer marshal_data); 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1292s # GValue *return_value, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types); 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp7d06t8jj/tmprcpr2b75.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # 1292s # /* VOID:PARAM (/tmp/tmp7d06t8jj/tmprcpr2b75.list:1) */ 1292s # void 1292s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint G_GNUC_UNUSED, 1292s # gpointer marshal_data) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__PARAM callback; 1292s # 1292s # g_return_if_fail (n_param_values == 2); 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = g_value_peek_pointer (param_values + 0); 1292s # } 1292s # else 1292s # { 1292s # data1 = g_value_peek_pointer (param_values + 0); 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # g_marshal_value_peek_param (param_values + 1), 1292s # data2); 1292s # } 1292s # 1292s # void 1292s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__PARAM callback; 1292s # gpointer arg0; 1292s # va_list args_copy; 1292s # 1292s # va_copy (args_copy, args); 1292s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # arg0 = g_param_spec_ref (arg0); 1292s # va_end (args_copy); 1292s # 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = instance; 1292s # } 1292s # else 1292s # { 1292s # data1 = instance; 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # arg0, 1292s # data2); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # g_param_spec_unref (arg0); 1292s # } 1292s # Error: 1292s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmpcjblvt1a 1292s # /tmp/tmpcjblvt1a/tmpq5lybuhv.list: VOID:STRING 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpcjblvt1a/tmpq5lybuhv.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # /* VOID:STRING (/tmp/tmpcjblvt1a/tmpq5lybuhv.list:1) */ 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1292s # GValue *return_value, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint, 1292s # gpointer marshal_data); 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1292s # GValue *return_value, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types); 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpcjblvt1a/tmpq5lybuhv.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # 1292s # /* VOID:STRING (/tmp/tmpcjblvt1a/tmpq5lybuhv.list:1) */ 1292s # void 1292s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint G_GNUC_UNUSED, 1292s # gpointer marshal_data) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__STRING callback; 1292s # 1292s # g_return_if_fail (n_param_values == 2); 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = g_value_peek_pointer (param_values + 0); 1292s # } 1292s # else 1292s # { 1292s # data1 = g_value_peek_pointer (param_values + 0); 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # g_marshal_value_peek_string (param_values + 1), 1292s # data2); 1292s # } 1292s # 1292s # void 1292s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__STRING callback; 1292s # gpointer arg0; 1292s # va_list args_copy; 1292s # 1292s # va_copy (args_copy, args); 1292s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # arg0 = g_strdup (arg0); 1292s # va_end (args_copy); 1292s # 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = instance; 1292s # } 1292s # else 1292s # { 1292s # data1 = instance; 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # arg0, 1292s # data2); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # g_free (arg0); 1292s # } 1292s # Error: 1292s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1292s # glib-genmarshal: /usr/bin/glib-genmarshal 1292s # tmpdir: /tmp/tmpz82htv1i 1292s # /tmp/tmpz82htv1i/tmpq_chy319.list: VOID:VARIANT 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpz82htv1i/tmpq_chy319.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1292s # 1292s # G_BEGIN_DECLS 1292s # 1292s # /* VOID:VARIANT (/tmp/tmpz82htv1i/tmpq_chy319.list:1) */ 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1292s # GValue *return_value, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint, 1292s # gpointer marshal_data); 1292s # extern 1292s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1292s # GValue *return_value, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types); 1292s # 1292s # 1292s # G_END_DECLS 1292s # 1292s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1292s # Error: 1292s # 1292s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpz82htv1i/tmpq_chy319.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1292s # Return code: 0 1292s # Output: 1292s # /* 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. */ 1292s # #ifdef G_ENABLE_DEBUG 1292s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1292s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1292s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1292s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1292s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1292s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1292s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1292s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1292s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1292s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1292s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1292s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1292s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1292s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1292s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1292s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1292s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1292s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1292s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1292s # #else /* !G_ENABLE_DEBUG */ 1292s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1292s # * Do not access GValues directly in your code. Instead, use the 1292s # * g_value_get_*() functions 1292s # */ 1292s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1292s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1292s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1292s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1292s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1292s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1292s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1292s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1292s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1292s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1292s # #endif /* !G_ENABLE_DEBUG */ 1292s # 1292s # /* VOID:VARIANT (/tmp/tmpz82htv1i/tmpq_chy319.list:1) */ 1292s # void 1292s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # guint n_param_values, 1292s # const GValue *param_values, 1292s # gpointer invocation_hint G_GNUC_UNUSED, 1292s # gpointer marshal_data) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__VARIANT callback; 1292s # 1292s # g_return_if_fail (n_param_values == 2); 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = g_value_peek_pointer (param_values + 0); 1292s # } 1292s # else 1292s # { 1292s # data1 = g_value_peek_pointer (param_values + 0); 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # g_marshal_value_peek_variant (param_values + 1), 1292s # data2); 1292s # } 1292s # 1292s # void 1292s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1292s # GValue *return_value G_GNUC_UNUSED, 1292s # gpointer instance, 1292s # va_list args, 1292s # gpointer marshal_data, 1292s # int n_params, 1292s # GType *param_types) 1292s # { 1292s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1292s # gpointer arg1, 1292s # gpointer data2); 1292s # GCClosure *cc = (GCClosure *) closure; 1292s # gpointer data1, data2; 1292s # GMarshalFunc_VOID__VARIANT callback; 1292s # gpointer arg0; 1292s # va_list args_copy; 1292s # 1292s # va_copy (args_copy, args); 1292s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # arg0 = g_variant_ref_sink (arg0); 1292s # va_end (args_copy); 1292s # 1292s # 1292s # if (G_CCLOSURE_SWAP_DATA (closure)) 1292s # { 1292s # data1 = closure->data; 1292s # data2 = instance; 1292s # } 1292s # else 1292s # { 1292s # data1 = instance; 1292s # data2 = closure->data; 1292s # } 1292s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1292s # 1292s # callback (data1, 1292s # arg0, 1292s # data2); 1292s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1292s # g_variant_unref (arg0); 1292s # } 1292s # Error: 1292s 1..8 1292s ok - glib/genmarshal.py.test 1292s # Running test: glib/regex.test 1292s TAP version 14 1292s # random seed: R02Sf9c70147da82f81de95e6959d0073604 1292s 1..848 1292s # Start of regex tests 1292s ok 1 /regex/properties 1292s ok 2 /regex/class 1292s ok 3 /regex/lookahead 1292s ok 4 /regex/lookbehind 1292s ok 5 /regex/subpattern 1292s ok 6 /regex/condition 1292s ok 7 /regex/recursion 1292s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1292s ok 8 /regex/multiline 1292s ok 9 /regex/explicit-crlf 1292s ok 10 /regex/max-lookbehind 1292s ok 11 /regex/compile-errors 1292s ok 12 /regex/jit-unsupported-matching 1292s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1292s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1292s ok 13 /regex/unmatched-named-subpattern 1292s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1292s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1292s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1292s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1292s ok 14 /regex/compiled-regex-after-jit-failure 1292s # Start of new tests 1292s ok 15 /regex/new/1 1292s ok 16 /regex/new/2 1292s ok 17 /regex/new/3 1292s ok 18 /regex/new/4 1292s ok 19 /regex/new/5 1292s ok 20 /regex/new/6 1292s ok 21 /regex/new/7 1292s ok 22 /regex/new/8 1292s ok 23 /regex/new/9 1292s ok 24 /regex/new/10 1292s ok 25 /regex/new/11 1292s ok 26 /regex/new/12 1292s ok 27 /regex/new/13 1292s ok 28 /regex/new/14 1292s ok 29 /regex/new/15 1292s ok 30 /regex/new/16 1292s ok 31 /regex/new/17 1292s ok 32 /regex/new/18 1292s ok 33 /regex/new/19 1292s ok 34 /regex/new/71 1292s ok 35 /regex/new/80 1292s ok 36 /regex/new/82 1292s # End of new tests 1292s # Start of new-check-flags tests 1292s ok 37 /regex/new-check-flags/20 1292s ok 38 /regex/new-check-flags/21 1292s ok 39 /regex/new-check-flags/22 1292s ok 40 /regex/new-check-flags/23 1292s ok 41 /regex/new-check-flags/24 1292s ok 42 /regex/new-check-flags/25 1292s ok 43 /regex/new-check-flags/26 1292s ok 44 /regex/new-check-flags/27 1292s ok 45 /regex/new-check-flags/28 1292s ok 46 /regex/new-check-flags/29 1292s ok 47 /regex/new-check-flags/30 1292s ok 48 /regex/new-check-flags/31 1292s ok 49 /regex/new-check-flags/32 1292s ok 50 /regex/new-check-flags/33 1292s ok 51 /regex/new-check-flags/34 1292s ok 52 /regex/new-check-flags/35 1292s ok 53 /regex/new-check-flags/36 1292s # End of new-check-flags tests 1292s # Start of new-fail tests 1292s ok 54 /regex/new-fail/37 1292s ok 55 /regex/new-fail/38 1292s ok 56 /regex/new-fail/39 1292s ok 57 /regex/new-fail/40 1292s ok 58 /regex/new-fail/41 1292s ok 59 /regex/new-fail/42 1292s ok 60 /regex/new-fail/43 1292s ok 61 /regex/new-fail/44 1292s ok 62 /regex/new-fail/45 1292s ok 63 /regex/new-fail/46 1292s ok 64 /regex/new-fail/47 1292s ok 65 /regex/new-fail/48 1292s ok 66 /regex/new-fail/49 1292s ok 67 /regex/new-fail/50 1292s ok 68 /regex/new-fail/51 1292s ok 69 /regex/new-fail/52 1292s ok 70 /regex/new-fail/53 1292s ok 71 /regex/new-fail/54 1292s ok 72 /regex/new-fail/55 1292s ok 73 /regex/new-fail/56 1292s ok 74 /regex/new-fail/57 1292s ok 75 /regex/new-fail/58 1292s ok 76 /regex/new-fail/59 1292s ok 77 /regex/new-fail/60 1292s ok 78 /regex/new-fail/61 1292s ok 79 /regex/new-fail/62 1292s ok 80 /regex/new-fail/63 1292s ok 81 /regex/new-fail/64 1292s ok 82 /regex/new-fail/65 1292s ok 83 /regex/new-fail/66 1292s ok 84 /regex/new-fail/67 1292s ok 85 /regex/new-fail/68 1292s ok 86 /regex/new-fail/69 1292s ok 87 /regex/new-fail/70 1292s ok 88 /regex/new-fail/72 1292s ok 89 /regex/new-fail/73 1292s ok 90 /regex/new-fail/74 1292s ok 91 /regex/new-fail/75 1292s ok 92 /regex/new-fail/76 1292s ok 93 /regex/new-fail/77 1292s ok 94 /regex/new-fail/78 1292s ok 95 /regex/new-fail/79 1292s ok 96 /regex/new-fail/81 1292s ok 97 /regex/new-fail/83 1292s ok 98 /regex/new-fail/84 1292s ok 99 /regex/new-fail/85 1292s ok 100 /regex/new-fail/86 1292s ok 101 /regex/new-fail/87 1292s ok 102 /regex/new-fail/88 1292s ok 103 /regex/new-fail/89 1292s ok 104 /regex/new-fail/90 1292s ok 105 /regex/new-fail/91 1292s # End of new-fail tests 1292s # Start of match-simple tests 1292s ok 106 /regex/match-simple/92 1292s ok 107 /regex/match-simple/93 1292s ok 108 /regex/match-simple/94 1292s ok 109 /regex/match-simple/95 1292s ok 110 /regex/match-simple/96 1292s ok 111 /regex/match-simple/97 1292s ok 112 /regex/match-simple/98 1292s ok 113 /regex/match-simple/99 1292s ok 114 /regex/match-simple/100 1292s ok 115 /regex/match-simple/101 1292s ok 116 /regex/match-simple/102 1292s ok 117 /regex/match-simple/103 1292s ok 118 /regex/match-simple/104 1292s ok 119 /regex/match-simple/105 1292s ok 120 /regex/match-simple/106 1292s ok 121 /regex/match-simple/107 1292s ok 122 /regex/match-simple/108 1292s ok 123 /regex/match-simple/109 1292s ok 124 /regex/match-simple/110 1292s ok 125 /regex/match-simple/111 1292s ok 126 /regex/match-simple/112 1292s ok 127 /regex/match-simple/113 1292s ok 128 /regex/match-simple/114 1292s ok 129 /regex/match-simple/115 1292s ok 130 /regex/match-simple/116 1292s ok 131 /regex/match-simple/117 1292s ok 132 /regex/match-simple/118 1292s ok 133 /regex/match-simple/119 1292s ok 134 /regex/match-simple/120 1292s ok 135 /regex/match-simple/121 1292s ok 136 /regex/match-simple/122 1292s ok 137 /regex/match-simple/123 1292s ok 138 /regex/match-simple/124 1292s ok 139 /regex/match-simple/125 1292s ok 140 /regex/match-simple/126 1292s ok 141 /regex/match-simple/127 1292s ok 142 /regex/match-simple/128 1292s ok 143 /regex/match-simple/129 1292s ok 144 /regex/match-simple/130 1292s ok 145 /regex/match-simple/131 1292s ok 146 /regex/match-simple/132 1292s ok 147 /regex/match-simple/133 1292s ok 148 /regex/match-simple/134 1292s ok 149 /regex/match-simple/135 1292s ok 150 /regex/match-simple/136 1292s ok 151 /regex/match-simple/137 1292s ok 152 /regex/match-simple/138 1292s ok 153 /regex/match-simple/139 1292s ok 154 /regex/match-simple/140 1292s ok 155 /regex/match-simple/141 1292s ok 156 /regex/match-simple/142 1292s ok 157 /regex/match-simple/143 1292s ok 158 /regex/match-simple/144 1292s ok 159 /regex/match-simple/145 1292s ok 160 /regex/match-simple/146 1292s ok 161 /regex/match-simple/147 1292s ok 162 /regex/match-simple/148 1292s ok 163 /regex/match-simple/149 1292s ok 164 /regex/match-simple/150 1292s ok 165 /regex/match-simple/151 1292s ok 166 /regex/match-simple/152 1292s ok 167 /regex/match-simple/153 1292s ok 168 /regex/match-simple/154 1292s ok 169 /regex/match-simple/155 1292s ok 170 /regex/match-simple/156 1292s ok 171 /regex/match-simple/157 1292s ok 172 /regex/match-simple/158 1292s ok 173 /regex/match-simple/159 1292s ok 174 /regex/match-simple/160 1292s ok 175 /regex/match-simple/161 1292s ok 176 /regex/match-simple/162 1292s ok 177 /regex/match-simple/163 1292s ok 178 /regex/match-simple/164 1292s # End of match-simple tests 1292s # Start of match-simple-optimized tests 1292s ok 179 /regex/match-simple-optimized/92 1292s ok 180 /regex/match-simple-optimized/93 1292s ok 181 /regex/match-simple-optimized/94 1292s ok 182 /regex/match-simple-optimized/95 1292s ok 183 /regex/match-simple-optimized/96 1292s ok 184 /regex/match-simple-optimized/97 1292s ok 185 /regex/match-simple-optimized/98 1292s ok 186 /regex/match-simple-optimized/99 1292s ok 187 /regex/match-simple-optimized/100 1292s ok 188 /regex/match-simple-optimized/101 1292s ok 189 /regex/match-simple-optimized/102 1292s ok 190 /regex/match-simple-optimized/103 1292s ok 191 /regex/match-simple-optimized/104 1292s ok 192 /regex/match-simple-optimized/105 1292s ok 193 /regex/match-simple-optimized/106 1292s ok 194 /regex/match-simple-optimized/107 1292s ok 195 /regex/match-simple-optimized/108 1292s ok 196 /regex/match-simple-optimized/109 1292s ok 197 /regex/match-simple-optimized/110 1292s ok 198 /regex/match-simple-optimized/111 1292s ok 199 /regex/match-simple-optimized/112 1292s ok 200 /regex/match-simple-optimized/113 1292s ok 201 /regex/match-simple-optimized/114 1292s ok 202 /regex/match-simple-optimized/115 1292s ok 203 /regex/match-simple-optimized/116 1292s ok 204 /regex/match-simple-optimized/117 1292s ok 205 /regex/match-simple-optimized/118 1292s ok 206 /regex/match-simple-optimized/119 1292s ok 207 /regex/match-simple-optimized/120 1292s ok 208 /regex/match-simple-optimized/121 1292s ok 209 /regex/match-simple-optimized/122 1292s ok 210 /regex/match-simple-optimized/123 1292s ok 211 /regex/match-simple-optimized/124 1292s ok 212 /regex/match-simple-optimized/125 1292s ok 213 /regex/match-simple-optimized/126 1292s ok 214 /regex/match-simple-optimized/127 1292s ok 215 /regex/match-simple-optimized/128 1292s ok 216 /regex/match-simple-optimized/129 1292s ok 217 /regex/match-simple-optimized/130 1292s ok 218 /regex/match-simple-optimized/131 1292s ok 219 /regex/match-simple-optimized/132 1292s ok 220 /regex/match-simple-optimized/133 1292s ok 221 /regex/match-simple-optimized/134 1292s ok 222 /regex/match-simple-optimized/135 1292s ok 223 /regex/match-simple-optimized/136 1292s ok 224 /regex/match-simple-optimized/137 1292s ok 225 /regex/match-simple-optimized/138 1292s ok 226 /regex/match-simple-optimized/139 1292s ok 227 /regex/match-simple-optimized/140 1292s ok 228 /regex/match-simple-optimized/141 1292s ok 229 /regex/match-simple-optimized/142 1292s ok 230 /regex/match-simple-optimized/143 1292s ok 231 /regex/match-simple-optimized/144 1292s ok 232 /regex/match-simple-optimized/145 1292s ok 233 /regex/match-simple-optimized/146 1292s ok 234 /regex/match-simple-optimized/147 1292s ok 235 /regex/match-simple-optimized/148 1292s ok 236 /regex/match-simple-optimized/149 1292s ok 237 /regex/match-simple-optimized/150 1292s ok 238 /regex/match-simple-optimized/151 1292s ok 239 /regex/match-simple-optimized/152 1292s ok 240 /regex/match-simple-optimized/153 1292s ok 241 /regex/match-simple-optimized/154 1292s ok 242 /regex/match-simple-optimized/155 1292s ok 243 /regex/match-simple-optimized/156 1292s ok 244 /regex/match-simple-optimized/157 1292s ok 245 /regex/match-simple-optimized/158 1292s ok 246 /regex/match-simple-optimized/159 1292s ok 247 /regex/match-simple-optimized/160 1292s ok 248 /regex/match-simple-optimized/161 1292s ok 249 /regex/match-simple-optimized/162 1292s ok 250 /regex/match-simple-optimized/163 1292s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1292s ok 251 /regex/match-simple-optimized/164 1292s # End of match-simple-optimized tests 1292s # Start of match tests 1292s ok 252 /regex/match/165 1292s ok 253 /regex/match/166 1292s ok 254 /regex/match/167 1292s ok 255 /regex/match/168 1292s ok 256 /regex/match/169 1292s ok 257 /regex/match/170 1292s ok 258 /regex/match/171 1292s ok 259 /regex/match/172 1292s ok 260 /regex/match/173 1292s ok 261 /regex/match/174 1292s ok 262 /regex/match/175 1292s ok 263 /regex/match/176 1292s ok 264 /regex/match/177 1292s ok 265 /regex/match/178 1292s ok 266 /regex/match/179 1292s ok 267 /regex/match/180 1292s ok 268 /regex/match/181 1292s ok 269 /regex/match/182 1292s ok 270 /regex/match/183 1292s ok 271 /regex/match/184 1292s ok 272 /regex/match/185 1292s ok 273 /regex/match/186 1292s ok 274 /regex/match/187 1292s ok 275 /regex/match/188 1292s ok 276 /regex/match/189 1292s ok 277 /regex/match/190 1292s ok 278 /regex/match/191 1292s ok 279 /regex/match/192 1292s ok 280 /regex/match/193 1292s ok 281 /regex/match/194 1292s ok 282 /regex/match/195 1292s ok 283 /regex/match/196 1292s ok 284 /regex/match/197 1292s ok 285 /regex/match/198 1292s ok 286 /regex/match/199 1292s ok 287 /regex/match/200 1292s ok 288 /regex/match/201 1292s ok 289 /regex/match/202 1292s ok 290 /regex/match/203 1292s ok 291 /regex/match/204 1292s ok 292 /regex/match/205 1292s ok 293 /regex/match/206 1292s ok 294 /regex/match/207 1292s ok 295 /regex/match/208 1292s ok 296 /regex/match/209 1292s ok 297 /regex/match/210 1292s ok 298 /regex/match/211 1292s ok 299 /regex/match/212 1292s ok 300 /regex/match/213 1292s ok 301 /regex/match/214 1292s ok 302 /regex/match/215 1292s ok 303 /regex/match/216 1292s ok 304 /regex/match/217 1292s ok 305 /regex/match/218 1292s ok 306 /regex/match/219 1292s ok 307 /regex/match/220 1292s ok 308 /regex/match/221 1292s ok 309 /regex/match/222 1292s ok 310 /regex/match/223 1292s ok 311 /regex/match/224 1292s ok 312 /regex/match/225 1292s ok 313 /regex/match/226 1292s ok 314 /regex/match/227 1292s ok 315 /regex/match/228 1292s ok 316 /regex/match/229 1292s ok 317 /regex/match/230 1292s ok 318 /regex/match/231 1292s ok 319 /regex/match/232 1292s ok 320 /regex/match/233 1292s ok 321 /regex/match/234 1292s ok 322 /regex/match/235 1292s ok 323 /regex/match/236 1292s ok 324 /regex/match/237 1292s ok 325 /regex/match/238 1292s ok 326 /regex/match/239 1292s ok 327 /regex/match/240 1292s ok 328 /regex/match/241 1292s ok 329 /regex/match/242 1292s ok 330 /regex/match/243 1292s ok 331 /regex/match/244 1292s ok 332 /regex/match/245 1292s ok 333 /regex/match/246 1292s ok 334 /regex/match/partial281 1292s ok 335 /regex/match/partial282 1292s ok 336 /regex/match/partial283 1292s ok 337 /regex/match/partial284 1292s ok 338 /regex/match/partial285 1292s ok 339 /regex/match/partial286 1292s ok 340 /regex/match/partial287 1292s ok 341 /regex/match/partial288 1292s ok 342 /regex/match/partial289 1292s ok 343 /regex/match/partial290 1292s ok 344 /regex/match/partial291 1292s ok 345 /regex/match/partial292 1292s ok 346 /regex/match/partial293 1292s ok 347 /regex/match/partial294 1292s ok 348 /regex/match/partial295 1292s ok 349 /regex/match/partial296 1292s ok 350 /regex/match/partial297 1292s ok 351 /regex/match/partial298 1292s ok 352 /regex/match/partial299 1292s ok 353 /regex/match/partial300 1292s ok 354 /regex/match/partial301 1292s ok 355 /regex/match/partial302 1292s # Start of next0 tests 1292s ok 356 /regex/match/next0/247 1292s ok 357 /regex/match/next0/248 1292s ok 358 /regex/match/next0/249 1292s ok 359 /regex/match/next0/250 1292s # End of next0 tests 1292s # Start of next1 tests 1292s ok 360 /regex/match/next1/251 1292s ok 361 /regex/match/next1/252 1292s ok 362 /regex/match/next1/253 1292s ok 363 /regex/match/next1/254 1292s ok 364 /regex/match/next1/255 1292s # End of next1 tests 1292s # Start of next2 tests 1292s ok 365 /regex/match/next2/256 1292s ok 366 /regex/match/next2/257 1292s ok 367 /regex/match/next2/258 1292s ok 368 /regex/match/next2/259 1292s ok 369 /regex/match/next2/260 1292s ok 370 /regex/match/next2/261 1292s ok 371 /regex/match/next2/262 1292s ok 372 /regex/match/next2/263 1292s # End of next2 tests 1292s # Start of next3 tests 1292s ok 373 /regex/match/next3/264 1292s ok 374 /regex/match/next3/265 1292s ok 375 /regex/match/next3/266 1292s ok 376 /regex/match/next3/267 1292s ok 377 /regex/match/next3/268 1292s ok 378 /regex/match/next3/269 1292s # End of next3 tests 1292s # Start of next4 tests 1292s ok 379 /regex/match/next4/270 1292s # End of next4 tests 1292s # Start of count tests 1292s ok 380 /regex/match/count/271 1292s ok 381 /regex/match/count/272 1292s ok 382 /regex/match/count/273 1292s ok 383 /regex/match/count/274 1292s ok 384 /regex/match/count/275 1292s ok 385 /regex/match/count/276 1292s ok 386 /regex/match/count/277 1292s ok 387 /regex/match/count/278 1292s ok 388 /regex/match/count/279 1292s ok 389 /regex/match/count/280 1292s # End of count tests 1292s # Start of count-optimized tests 1292s ok 390 /regex/match/count-optimized/271 1292s ok 391 /regex/match/count-optimized/272 1292s ok 392 /regex/match/count-optimized/273 1292s ok 393 /regex/match/count-optimized/274 1292s ok 394 /regex/match/count-optimized/275 1292s ok 395 /regex/match/count-optimized/276 1292s ok 396 /regex/match/count-optimized/277 1292s ok 397 /regex/match/count-optimized/278 1292s ok 398 /regex/match/count-optimized/279 1292s ok 399 /regex/match/count-optimized/280 1292s # End of count-optimized tests 1292s # Start of partial-optimized tests 1292s ok 400 /regex/match/partial-optimized/281 1292s ok 401 /regex/match/partial-optimized/282 1292s ok 402 /regex/match/partial-optimized/283 1292s ok 403 /regex/match/partial-optimized/284 1292s ok 404 /regex/match/partial-optimized/285 1292s ok 405 /regex/match/partial-optimized/286 1292s ok 406 /regex/match/partial-optimized/287 1292s ok 407 /regex/match/partial-optimized/288 1292s ok 408 /regex/match/partial-optimized/289 1292s ok 409 /regex/match/partial-optimized/290 1292s ok 410 /regex/match/partial-optimized/291 1292s ok 411 /regex/match/partial-optimized/292 1292s ok 412 /regex/match/partial-optimized/293 1292s ok 413 /regex/match/partial-optimized/294 1292s ok 414 /regex/match/partial-optimized/295 1292s ok 415 /regex/match/partial-optimized/296 1292s ok 416 /regex/match/partial-optimized/297 1292s ok 417 /regex/match/partial-optimized/298 1292s ok 418 /regex/match/partial-optimized/299 1292s ok 419 /regex/match/partial-optimized/300 1292s ok 420 /regex/match/partial-optimized/301 1292s ok 421 /regex/match/partial-optimized/302 1292s # End of partial-optimized tests 1292s # Start of subpattern tests 1292s ok 422 /regex/match/subpattern/303 1292s ok 423 /regex/match/subpattern/304 1292s ok 424 /regex/match/subpattern/305 1292s ok 425 /regex/match/subpattern/306 1292s ok 426 /regex/match/subpattern/307 1292s ok 427 /regex/match/subpattern/308 1292s ok 428 /regex/match/subpattern/309 1292s ok 429 /regex/match/subpattern/310 1292s ok 430 /regex/match/subpattern/311 1292s ok 431 /regex/match/subpattern/312 1292s ok 432 /regex/match/subpattern/313 1292s ok 433 /regex/match/subpattern/314 1292s ok 434 /regex/match/subpattern/315 1292s # Start of named tests 1292s # Start of dupnames tests 1292s ok 435 /regex/match/subpattern/named/dupnames/325 1292s ok 436 /regex/match/subpattern/named/dupnames/326 1292s ok 437 /regex/match/subpattern/named/dupnames/327 1292s ok 438 /regex/match/subpattern/named/dupnames/328 1292s ok 439 /regex/match/subpattern/named/dupnames/329 1292s # End of dupnames tests 1292s # End of named tests 1292s # End of subpattern tests 1292s # Start of subpattern-optimized tests 1292s ok 440 /regex/match/subpattern-optimized/303 1292s ok 441 /regex/match/subpattern-optimized/304 1292s ok 442 /regex/match/subpattern-optimized/305 1292s ok 443 /regex/match/subpattern-optimized/306 1292s ok 444 /regex/match/subpattern-optimized/307 1292s ok 445 /regex/match/subpattern-optimized/308 1292s ok 446 /regex/match/subpattern-optimized/309 1292s ok 447 /regex/match/subpattern-optimized/310 1292s ok 448 /regex/match/subpattern-optimized/311 1292s ok 449 /regex/match/subpattern-optimized/312 1292s ok 450 /regex/match/subpattern-optimized/313 1292s ok 451 /regex/match/subpattern-optimized/314 1292s ok 452 /regex/match/subpattern-optimized/315 1292s # End of subpattern-optimized tests 1292s # Start of named tests 1292s # Start of subpattern tests 1292s ok 453 /regex/match/named/subpattern/316 1292s ok 454 /regex/match/named/subpattern/317 1292s ok 455 /regex/match/named/subpattern/318 1292s ok 456 /regex/match/named/subpattern/319 1292s ok 457 /regex/match/named/subpattern/320 1292s ok 458 /regex/match/named/subpattern/321 1292s ok 459 /regex/match/named/subpattern/322 1292s ok 460 /regex/match/named/subpattern/323 1292s ok 461 /regex/match/named/subpattern/324 1292s ok 462 /regex/match/named/subpattern/330 1292s ok 463 /regex/match/named/subpattern/331 1292s ok 464 /regex/match/named/subpattern/332 1292s ok 465 /regex/match/named/subpattern/333 1292s ok 466 /regex/match/named/subpattern/334 1292s # End of subpattern tests 1292s # End of named tests 1292s # End of match tests 1292s # Start of match-optimized tests 1292s ok 467 /regex/match-optimized/165 1292s ok 468 /regex/match-optimized/166 1292s ok 469 /regex/match-optimized/167 1292s ok 470 /regex/match-optimized/168 1292s ok 471 /regex/match-optimized/169 1292s ok 472 /regex/match-optimized/170 1292s ok 473 /regex/match-optimized/171 1292s ok 474 /regex/match-optimized/172 1292s ok 475 /regex/match-optimized/173 1292s ok 476 /regex/match-optimized/174 1292s ok 477 /regex/match-optimized/175 1292s ok 478 /regex/match-optimized/176 1292s ok 479 /regex/match-optimized/177 1292s ok 480 /regex/match-optimized/178 1292s ok 481 /regex/match-optimized/179 1292s ok 482 /regex/match-optimized/180 1292s ok 483 /regex/match-optimized/181 1292s ok 484 /regex/match-optimized/182 1292s ok 485 /regex/match-optimized/183 1292s ok 486 /regex/match-optimized/184 1292s ok 487 /regex/match-optimized/185 1292s ok 488 /regex/match-optimized/186 1292s ok 489 /regex/match-optimized/187 1292s ok 490 /regex/match-optimized/188 1292s ok 491 /regex/match-optimized/189 1292s ok 492 /regex/match-optimized/190 1292s ok 493 /regex/match-optimized/191 1292s ok 494 /regex/match-optimized/192 1292s ok 495 /regex/match-optimized/193 1292s ok 496 /regex/match-optimized/194 1292s ok 497 /regex/match-optimized/195 1292s ok 498 /regex/match-optimized/196 1292s ok 499 /regex/match-optimized/197 1292s ok 500 /regex/match-optimized/198 1292s ok 501 /regex/match-optimized/199 1292s ok 502 /regex/match-optimized/200 1292s ok 503 /regex/match-optimized/201 1292s ok 504 /regex/match-optimized/202 1292s ok 505 /regex/match-optimized/203 1292s ok 506 /regex/match-optimized/204 1292s ok 507 /regex/match-optimized/205 1292s ok 508 /regex/match-optimized/206 1292s ok 509 /regex/match-optimized/207 1292s ok 510 /regex/match-optimized/208 1292s ok 511 /regex/match-optimized/209 1292s ok 512 /regex/match-optimized/210 1292s ok 513 /regex/match-optimized/211 1292s ok 514 /regex/match-optimized/212 1292s ok 515 /regex/match-optimized/213 1292s ok 516 /regex/match-optimized/214 1292s ok 517 /regex/match-optimized/215 1292s ok 518 /regex/match-optimized/216 1292s ok 519 /regex/match-optimized/217 1292s ok 520 /regex/match-optimized/218 1292s ok 521 /regex/match-optimized/219 1292s ok 522 /regex/match-optimized/220 1292s ok 523 /regex/match-optimized/221 1292s ok 524 /regex/match-optimized/222 1292s ok 525 /regex/match-optimized/223 1292s ok 526 /regex/match-optimized/224 1292s ok 527 /regex/match-optimized/225 1292s ok 528 /regex/match-optimized/226 1292s ok 529 /regex/match-optimized/227 1292s ok 530 /regex/match-optimized/228 1292s ok 531 /regex/match-optimized/229 1292s ok 532 /regex/match-optimized/230 1292s ok 533 /regex/match-optimized/231 1292s ok 534 /regex/match-optimized/232 1292s ok 535 /regex/match-optimized/233 1292s ok 536 /regex/match-optimized/234 1292s ok 537 /regex/match-optimized/235 1292s ok 538 /regex/match-optimized/236 1292s ok 539 /regex/match-optimized/237 1292s ok 540 /regex/match-optimized/238 1292s ok 541 /regex/match-optimized/239 1292s ok 542 /regex/match-optimized/240 1292s ok 543 /regex/match-optimized/241 1292s ok 544 /regex/match-optimized/242 1292s ok 545 /regex/match-optimized/243 1292s ok - glib/regex.test 1292s # Running test: glib/network-address.test 1292s ok 546 /regex/match-optimized/244 1292s ok 547 /regex/match-optimized/245 1292s ok 548 /regex/match-optimized/246 1292s # End of match-optimized tests 1292s # Start of fetch-all0 tests 1292s ok 549 /regex/fetch-all0/335 1292s ok 550 /regex/fetch-all0/336 1292s # End of fetch-all0 tests 1292s # Start of fetch-all1 tests 1292s ok 551 /regex/fetch-all1/337 1292s ok 552 /regex/fetch-all1/338 1292s ok 553 /regex/fetch-all1/339 1292s # End of fetch-all1 tests 1292s # Start of fetch-all2 tests 1292s ok 554 /regex/fetch-all2/340 1292s ok 555 /regex/fetch-all2/341 1292s ok 556 /regex/fetch-all2/342 1292s # End of fetch-all2 tests 1292s # Start of fetch-all3 tests 1292s ok 557 /regex/fetch-all3/343 1292s ok 558 /regex/fetch-all3/344 1292s ok 559 /regex/fetch-all3/345 1292s ok 560 /regex/fetch-all3/346 1292s ok 561 /regex/fetch-all3/347 1292s # End of fetch-all3 tests 1292s # Start of split tests 1292s # Start of simple0 tests 1292s ok 562 /regex/split/simple0/348 1292s ok 563 /regex/split/simple0/349 1292s ok 564 /regex/split/simple0/364 1292s ok 565 /regex/split/simple0/365 1292s # End of simple0 tests 1292s # Start of simple1 tests 1292s ok 566 /regex/split/simple1/350 1292s ok 567 /regex/split/simple1/351 1292s # End of simple1 tests 1292s # Start of simple2 tests 1292s ok 568 /regex/split/simple2/352 1292s ok 569 /regex/split/simple2/358 1292s ok 570 /regex/split/simple2/360 1292s # End of simple2 tests 1292s # Start of simple3 tests 1292s ok 571 /regex/split/simple3/353 1292s ok 572 /regex/split/simple3/354 1292s ok 573 /regex/split/simple3/355 1292s ok 574 /regex/split/simple3/356 1292s ok 575 /regex/split/simple3/357 1292s ok 576 /regex/split/simple3/359 1292s ok 577 /regex/split/simple3/361 1292s ok 578 /regex/split/simple3/362 1292s ok 579 /regex/split/simple3/363 1292s # End of simple3 tests 1292s # End of split tests 1292s # Start of split0 tests 1292s ok 580 /regex/split0/366 1292s ok 581 /regex/split0/368 1292s # End of split0 tests 1292s # Start of full-split0 tests 1292s ok 582 /regex/full-split0/367 1292s ok 583 /regex/full-split0/369 1292s ok 584 /regex/full-split0/370 1292s ok 585 /regex/full-split0/371 1292s ok 586 /regex/full-split0/372 1292s # End of full-split0 tests 1292s # Start of split1 tests 1292s ok 587 /regex/split1/373 1292s ok 588 /regex/split1/376 1292s # End of split1 tests 1292s # Start of full-split1 tests 1292s ok 589 /regex/full-split1/374 1292s ok 590 /regex/full-split1/375 1292s ok 591 /regex/full-split1/377 1292s ok 592 /regex/full-split1/378 1292s ok 593 /regex/full-split1/404 1292s # End of full-split1 tests 1292s # Start of split2 tests 1292s ok 594 /regex/split2/379 1292s ok 595 /regex/split2/383 1292s ok 596 /regex/split2/395 1292s # End of split2 tests 1292s # Start of full-split2 tests 1292s ok 597 /regex/full-split2/380 1292s ok 598 /regex/full-split2/381 1292s ok 599 /regex/full-split2/382 1292s ok 600 /regex/full-split2/384 1292s ok 601 /regex/full-split2/396 1292s ok 602 /regex/full-split2/399 1292s ok 603 /regex/full-split2/405 1292s # End of full-split2 tests 1292s # Start of split3 tests 1292s ok 604 /regex/split3/385 1292s ok 605 /regex/split3/387 1292s ok 606 /regex/split3/389 1292s ok 607 /regex/split3/391 1292s ok 608 /regex/split3/393 1292s ok 609 /regex/split3/397 1292s ok 610 /regex/split3/400 1292s ok 611 /regex/split3/402 1292s # End of split3 tests 1292s # Start of full-split3 tests 1292s ok 612 /regex/full-split3/386 1292s ok 613 /regex/full-split3/388 1292s ok 614 /regex/full-split3/390 1292s ok 615 /regex/full-split3/392 1292s ok 616 /regex/full-split3/394 1292s ok 617 /regex/full-split3/398 1292s ok 618 /regex/full-split3/401 1292s ok 619 /regex/full-split3/403 1292s ok 620 /regex/full-split3/406 1292s ok 621 /regex/full-split3/407 1292s # End of full-split3 tests 1292s # Start of check-repacement tests 1292s ok 622 /regex/check-repacement/408 1292s ok 623 /regex/check-repacement/409 1292s ok 624 /regex/check-repacement/410 1292s ok 625 /regex/check-repacement/411 1292s ok 626 /regex/check-repacement/412 1292s ok 627 /regex/check-repacement/413 1292s ok 628 /regex/check-repacement/414 1292s ok 629 /regex/check-repacement/415 1292s # End of check-repacement tests 1292s # Start of expand tests 1292s ok 630 /regex/expand/416 1292s ok 631 /regex/expand/417 1292s ok 632 /regex/expand/418 1292s ok 633 /regex/expand/419 1292s ok 634 /regex/expand/420 1292s ok 635 /regex/expand/421 1292s ok 636 /regex/expand/422 1292s ok 637 /regex/expand/423 1292s ok 638 /regex/expand/424 1292s ok 639 /regex/expand/425 1292s ok 640 /regex/expand/426 1292s ok 641 /regex/expand/427 1292s ok 642 /regex/expand/428 1292s ok 643 /regex/expand/429 1292s ok 644 /regex/expand/430 1292s ok 645 /regex/expand/431 1292s ok 646 /regex/expand/432 1292s ok 647 /regex/expand/433 1292s ok 648 /regex/expand/434 1292s ok 649 /regex/expand/435 1292s ok 650 /regex/expand/436 1292s ok 651 /regex/expand/437 1292s ok 652 /regex/expand/438 1292s ok 653 /regex/expand/439 1292s ok 654 /regex/expand/440 1292s ok 655 /regex/expand/441 1292s ok 656 /regex/expand/442 1292s ok 657 /regex/expand/443 1292s ok 658 /regex/expand/444 1292s ok 659 /regex/expand/445 1292s ok 660 /regex/expand/446 1292s ok 661 /regex/expand/447 1292s ok 662 /regex/expand/448 1292s ok 663 /regex/expand/449 1292s ok 664 /regex/expand/450 1292s ok 665 /regex/expand/451 1292s ok 666 /regex/expand/452 1292s ok 667 /regex/expand/453 1292s ok 668 /regex/expand/454 1292s ok 669 /regex/expand/455 1292s ok 670 /regex/expand/456 1292s ok 671 /regex/expand/457 1292s ok 672 /regex/expand/458 1292s ok 673 /regex/expand/459 1292s ok 674 /regex/expand/460 1292s ok 675 /regex/expand/461 1292s ok 676 /regex/expand/462 1292s ok 677 /regex/expand/463 1292s ok 678 /regex/expand/464 1292s ok 679 /regex/expand/465 1292s ok 680 /regex/expand/466 1292s ok 681 /regex/expand/467 1292s ok 682 /regex/expand/468 1292s ok 683 /regex/expand/469 1292s ok 684 /regex/expand/470 1292s ok 685 /regex/expand/471 1292s ok 686 /regex/expand/472 1292s ok 687 /regex/expand/473 1292s ok 688 /regex/expand/474 1292s ok 689 /regex/expand/475 1292s ok 690 /regex/expand/476 1292s ok 691 /regex/expand/477 1292s ok 692 /regex/expand/478 1292s ok 693 /regex/expand/479 1292s ok 694 /regex/expand/480 1292s ok 695 /regex/expand/481 1292s # End of expand tests 1292s # Start of replace tests 1292s ok 696 /regex/replace/482 1292s ok 697 /regex/replace/483 1292s ok 698 /regex/replace/484 1292s ok 699 /regex/replace/485 1292s ok 700 /regex/replace/486 1292s ok 701 /regex/replace/487 1292s ok 702 /regex/replace/488 1292s ok 703 /regex/replace/489 1292s ok 704 /regex/replace/490 1292s ok 705 /regex/replace/491 1292s ok 706 /regex/replace/492 1292s ok 707 /regex/replace/493 1292s ok 708 /regex/replace/494 1292s ok 709 /regex/replace/495 1292s ok 710 /regex/replace/496 1292s ok 711 /regex/replace/497 1292s ok 712 /regex/replace/498 1292s ok 713 /regex/replace/499 1292s ok 714 /regex/replace/500 1292s ok 715 /regex/replace/501 1292s ok 716 /regex/replace/502 1292s ok 717 /regex/replace/503 1292s ok 718 /regex/replace/504 1292s ok 719 /regex/replace/505 1292s ok 720 /regex/replace/506 1292s ok 721 /regex/replace/507 1292s ok 722 /regex/replace/508 1292s ok 723 /regex/replace/509 1292s # End of replace tests 1292s # Start of replace-optimized tests 1292s ok 724 /regex/replace-optimized/482 1292s ok 725 /regex/replace-optimized/483 1292s ok 726 /regex/replace-optimized/484 1292s ok 727 /regex/replace-optimized/485 1292s ok 728 /regex/replace-optimized/486 1292s ok 729 /regex/replace-optimized/487 1292s ok 730 /regex/replace-optimized/488 1292s ok 731 /regex/replace-optimized/489 1292s ok 732 /regex/replace-optimized/490 1292s ok 733 /regex/replace-optimized/491 1292s ok 734 /regex/replace-optimized/492 1292s ok 735 /regex/replace-optimized/493 1292s ok 736 /regex/replace-optimized/494 1292s ok 737 /regex/replace-optimized/495 1292s ok 738 /regex/replace-optimized/496 1292s ok 739 /regex/replace-optimized/497 1292s ok 740 /regex/replace-optimized/498 1292s ok 741 /regex/replace-optimized/499 1292s ok 742 /regex/replace-optimized/500 1292s ok 743 /regex/replace-optimized/501 1292s ok 744 /regex/replace-optimized/502 1292s ok 745 /regex/replace-optimized/503 1292s ok 746 /regex/replace-optimized/504 1292s ok 747 /regex/replace-optimized/505 1292s ok 748 /regex/replace-optimized/506 1292s ok 749 /regex/replace-optimized/507 1292s ok 750 /regex/replace-optimized/508 1292s ok 751 /regex/replace-optimized/509 1292s # End of replace-optimized tests 1292s # Start of replace-literally tests 1292s ok 752 /regex/replace-literally/510 1292s ok 753 /regex/replace-literally/511 1292s ok 754 /regex/replace-literally/512 1292s ok 755 /regex/replace-literally/513 1292s ok 756 /regex/replace-literally/514 1292s ok 757 /regex/replace-literally/515 1292s ok 758 /regex/replace-literally/516 1292s ok 759 /regex/replace-literally/517 1292s ok 760 /regex/replace-literally/518 1292s ok 761 /regex/replace-literally/519 1292s ok 762 /regex/replace-literally/520 1292s ok 763 /regex/replace-literally/521 1292s ok 764 /regex/replace-literally/522 1292s ok 765 /regex/replace-literally/523 1292s ok 766 /regex/replace-literally/524 1292s ok 767 /regex/replace-literally/525 1292s ok 768 /regex/replace-literally/526 1292s ok 769 /regex/replace-literally/527 1292s ok 770 /regex/replace-literally/528 1292s ok 771 /regex/replace-literally/529 1292s # End of replace-literally tests 1292s # Start of string-number tests 1292s ok 772 /regex/string-number/530 1292s ok 773 /regex/string-number/531 1292s ok 774 /regex/string-number/532 1292s ok 775 /regex/string-number/533 1292s ok 776 /regex/string-number/534 1292s ok 777 /regex/string-number/535 1292s ok 778 /regex/string-number/536 1292s ok 779 /regex/string-number/537 1292s ok 780 /regex/string-number/538 1292s ok 781 /regex/string-number/539 1292s ok 782 /regex/string-number/540 1292s ok 783 /regex/string-number/541 1292s ok 784 /regex/string-number/542 1292s ok 785 /regex/string-number/543 1292s ok 786 /regex/string-number/544 1292s # End of string-number tests 1292s # Start of escape_nul tests 1292s ok 787 /regex/escape_nul/545 1292s ok 788 /regex/escape_nul/546 1292s ok 789 /regex/escape_nul/547 1292s ok 790 /regex/escape_nul/548 1292s ok 791 /regex/escape_nul/549 1292s ok 792 /regex/escape_nul/550 1292s ok 793 /regex/escape_nul/551 1292s ok 794 /regex/escape_nul/552 1292s ok 795 /regex/escape_nul/553 1292s ok 796 /regex/escape_nul/554 1292s ok 797 /regex/escape_nul/555 1292s ok 798 /regex/escape_nul/556 1292s ok 799 /regex/escape_nul/557 1292s ok 800 /regex/escape_nul/558 1292s ok 801 /regex/escape_nul/559 1292s # End of escape_nul tests 1292s # Start of escape tests 1292s ok 802 /regex/escape/560 1292s ok 803 /regex/escape/561 1292s ok 804 /regex/escape/562 1292s ok 805 /regex/escape/563 1292s ok 806 /regex/escape/564 1292s ok 807 /regex/escape/565 1292s ok 808 /regex/escape/566 1292s ok 809 /regex/escape/567 1292s ok 810 /regex/escape/568 1292s ok 811 /regex/escape/569 1292s ok 812 /regex/escape/570 1292s ok 813 /regex/escape/571 1292s ok 814 /regex/escape/572 1292s ok 815 /regex/escape/573 1292s ok 816 /regex/escape/574 1292s ok 817 /regex/escape/575 1292s ok 818 /regex/escape/576 1292s ok 819 /regex/escape/577 1292s # End of escape tests 1292s # Start of match-all0 tests 1292s ok 820 /regex/match-all0/578 1292s ok 821 /regex/match-all0/580 1292s # End of match-all0 tests 1292s # Start of match-all-full0 tests 1292s ok 822 /regex/match-all-full0/579 1292s ok 823 /regex/match-all-full0/581 1292s ok 824 /regex/match-all-full0/582 1292s ok 825 /regex/match-all-full0/583 1292s # End of match-all-full0 tests 1292s # Start of match-all1 tests 1292s ok 826 /regex/match-all1/584 1292s ok 827 /regex/match-all1/586 1292s ok 828 /regex/match-all1/591 1292s # End of match-all1 tests 1292s # Start of match-all-full1 tests 1292s ok 829 /regex/match-all-full1/585 1292s ok 830 /regex/match-all-full1/587 1292s ok 831 /regex/match-all-full1/588 1292s ok 832 /regex/match-all-full1/589 1292s ok 833 /regex/match-all-full1/590 1292s ok 834 /regex/match-all-full1/592 1292s # End of match-all-full1 tests 1292s # Start of match-all2 tests 1292s ok 835 /regex/match-all2/593 1292s ok 836 /regex/match-all2/595 1292s ok 837 /regex/match-all2/597 1292s # End of match-all2 tests 1292s # Start of match-all-full2 tests 1292s ok 838 /regex/match-all-full2/594 1292s ok 839 /regex/match-all-full2/596 1292s ok 840 /regex/match-all-full2/598 1292s # End of match-all-full2 tests 1292s # Start of match-all3 tests 1292s ok 841 /regex/match-all3/599 1292s ok 842 /regex/match-all3/601 1292s # End of match-all3 tests 1292s # Start of match-all-full3 tests 1292s ok 843 /regex/match-all-full3/600 1292s ok 844 /regex/match-all-full3/602 1292s # End of match-all-full3 tests 1292s # Start of match-notempty tests 1292s ok 845 /regex/match-notempty/603 1292s # End of match-notempty tests 1292s # Start of match-notempty-optimized tests 1292s ok 846 /regex/match-notempty-optimized/603 1292s # End of match-notempty-optimized tests 1292s # Start of match-notempty-atstart tests 1292s ok 847 /regex/match-notempty-atstart/604 1292s # End of match-notempty-atstart tests 1292s # Start of match-notempty-atstart-optimized tests 1292s ok 848 /regex/match-notempty-atstart-optimized/604 1292s # End of match-notempty-atstart-optimized tests 1292s # End of regex tests 1292s TAP version 14 1292s # random seed: R02S36842bced0a384a560bc2f15d128f628 1292s 1..72 1292s # Start of network-address tests 1292s ok 1 /network-address/basic 1292s ok 2 /network-address/scope-id 1292s ok 3 /network-address/uri-scope-id 1292s ok 4 /network-address/to-string 1292s # Start of parse-host tests 1292s ok 5 /network-address/parse-host/0 1292s ok 6 /network-address/parse-host/1 1292s ok 7 /network-address/parse-host/2 1292s ok 8 /network-address/parse-host/3 1292s ok 9 /network-address/parse-host/4 1292s ok 10 /network-address/parse-host/5 1292s ok 11 /network-address/parse-host/6 1292s ok 12 /network-address/parse-host/7 1292s ok 13 /network-address/parse-host/8 1292s ok 14 /network-address/parse-host/9 1292s ok 15 /network-address/parse-host/10 1292s ok 16 /network-address/parse-host/11 1292s ok 17 /network-address/parse-host/12 1292s ok 18 /network-address/parse-host/13 1292s # End of parse-host tests 1292s # Start of parse-uri tests 1292s ok 19 /network-address/parse-uri/0 1292s ok 20 /network-address/parse-uri/1 1292s ok 21 /network-address/parse-uri/2 1292s ok 22 /network-address/parse-uri/3 1292s ok 23 /network-address/parse-uri/4 1292s ok 24 /network-address/parse-uri/5 1292s ok 25 /network-address/parse-uri/6 1292s ok 26 /network-address/parse-uri/7 1292s ok 27 /network-address/parse-uri/8 1292s ok 28 /network-address/parse-uri/9 1292s # End of parse-uri tests 1292s # Start of resolve-address tests 1292s # Input: 192.168.1.2 1292s ok 29 /network-address/resolve-address/0 1292s # Input: fe80::42 1292s ok 30 /network-address/resolve-address/1 1292s # Input: 192.168.1.2:80 1292s ok 31 /network-address/resolve-address/2 1292s # Input: [fe80::42] 1292s ok 32 /network-address/resolve-address/3 1292s # Input: [fe80::42]:80 1292s ok 33 /network-address/resolve-address/4 1292s # Input: 192.168.258 1292s ok 34 /network-address/resolve-address/5 1292s # Input: 192.11010306 1292s ok 35 /network-address/resolve-address/6 1292s # Input: 3232235778 1292s ok 36 /network-address/resolve-address/7 1292s # Input: 0300.0250.0001.0001 1292s ok 37 /network-address/resolve-address/8 1292s # Input: 0xC0.0xA8.0x01.0x02 1292s ok 38 /network-address/resolve-address/9 1292s # Input: 0xc0.0xa8.0x01.0x02 1292s ok 39 /network-address/resolve-address/10 1292s # Input: 0xc0a80102 1292s ok 40 /network-address/resolve-address/11 1292s # End of resolve-address tests 1292s # Start of loopback tests 1292s ok 41 /network-address/loopback/basic 1292s ok 42 /network-address/loopback/sync 1292s ok 43 /network-address/loopback/async 1292s # End of loopback tests 1292s # Start of localhost tests 1292s ok 44 /network-address/localhost/async 1292s ok 45 /network-address/localhost/sync 1292s # End of localhost tests 1292s # Start of happy-eyeballs tests 1292s ok 46 /network-address/happy-eyeballs/basic 1293s ok 47 /network-address/happy-eyeballs/parallel 1293s ok 48 /network-address/happy-eyeballs/slow-ipv4 1293s ok 49 /network-address/happy-eyeballs/slow-ipv6 1293s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1294s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1294s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1294s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1294s # /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. 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s ok 57 /network-address/happy-eyeballs/both-error 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1294s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1294s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1294s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1294s # End of happy-eyeballs tests 1294s # End of network-address tests 1294s # Start of gresolver tests 1294s # Start of resolve-address tests 1294s # Input: 192.168.1.2 1294s ok 61 /gresolver/resolve-address/0 1294s # Input: fe80::42 1294s ok 62 /gresolver/resolve-address/1 1294s # Input: 192.168.1.2:80 1294s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 1294s ok 63 /gresolver/resolve-address/2 1294s # Input: [fe80::42] 1294s # Error: Error resolving ?[fe80::42]?: Name or service not known 1294s ok 64 /gresolver/resolve-address/3 1294s # Input: [fe80::42]:80 1294s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 1294s ok 65 /gresolver/resolve-address/4 1294s # Input: 192.168.258 1294s # Error: Error resolving ?192.168.258?: Name or service not known 1294s ok 66 /gresolver/resolve-address/5 1294s # Input: 192.11010306 1294s # Error: Error resolving ?192.11010306?: Name or service not known 1294s ok 67 /gresolver/resolve-address/6 1294s # Input: 3232235778 1294s # Error: Error resolving ?3232235778?: Name or service not known 1294s ok 68 /gresolver/resolve-address/7 1294s # Input: 0300.0250.0001.0001 1294s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 1294s ok 69 /gresolver/resolve-address/8 1294s # Input: 0xC0.0xA8.0x01.0x02 1294s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 1294s ok 70 /gresolver/resolve-address/9 1294s # Input: 0xc0.0xa8.0x01.0x02 1294s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 1294s ok 71 /gresolver/resolve-address/10 1294s # Input: 0xc0a80102 1294s # Error: Error resolving ?0xc0a80102?: Name or service not known 1294s ok 72 /gresolver/resolve-address/11 1294s # End of resolve-address tests 1294s # End of gresolver tests 1294s ok - glib/network-address.test 1294s # Running test: glib/testfilemonitor.test 1294s ok - glib/testfilemonitor.test 1294s # Running test: glib/actions.test 1294s TAP version 14 1294s # random seed: R02S9c172039e9e6bfe693edb005993b6000 1294s 1..8 1294s # Start of monitor tests 1294s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1294s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1294s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1294s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s # Start of file tests 1294s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1294s # End of file tests 1294s # End of monitor tests 1294s TAP version 14 1294s # random seed: R02Sb740469197a46fcc347c8e5850a93380 1294s 1..13 1294s # Start of actions tests 1294s ok 1 /actions/basic 1294s ok 2 /actions/name 1294s ok 3 /actions/simplegroup 1294s ok 4 /actions/stateful 1294s ok 5 /actions/default-activate 1294s ok 6 /actions/entries 1294s ok 7 /actions/parse-detailed 1294s ok 8 /actions/property 1294s ok 9 /actions/no-properties 1294s # Start of dbus tests 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 10 /actions/dbus/export 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # Executing: glib/actions.test 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s ok 11 /actions/dbus/threaded 1296s # slow test /actions/dbus/threaded executed in 2.08 secs 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s ok 12 /actions/dbus/bug679509 1296s # Start of export tests 1296s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1296s ok 13 /actions/dbus/export/error-handling 1296s # End of export tests 1296s # End of dbus tests 1296s # End of actions tests 1296s ok - glib/actions.test 1296s TAP version 14 1296s # random seed: R02S73fb03263d2bf290e9cc90f0080a8106 1296s 1..16 1296s # Start of sequence tests 1296s ok 1 /sequence/out-of-range-jump 1296s ok 2 /sequence/iter-move 1296s # Running test: glib/sequence.test 1296s ok 3 /sequence/insert-sorted-non-pointer 1296s ok 4 /sequence/stable-sort 1296s ok 5 /sequence/is_empty 1296s # Start of random tests 1297s ok 6 /sequence/random/seed:825541564 1297s # slow test /sequence/random/seed:825541564 executed in 0.61 secs 1298s ok 7 /sequence/random/seed:801678400 1298s # slow test /sequence/random/seed:801678400 executed in 0.58 secs 1298s ok 8 /sequence/random/seed:1477639090 1298s # slow test /sequence/random/seed:1477639090 executed in 0.60 secs 1299s ok 9 /sequence/random/seed:3369132895 1299s # slow test /sequence/random/seed:3369132895 executed in 0.57 secs 1299s ok 10 /sequence/random/seed:1192944867 1299s # slow test /sequence/random/seed:1192944867 executed in 0.59 secs 1299s # Executing: glib/sequence.test 1300s ok 11 /sequence/random/seed:770458294 1300s # slow test /sequence/random/seed:770458294 executed in 0.61 secs 1300s ok 12 /sequence/random/seed:1099575817 1300s # slow test /sequence/random/seed:1099575817 executed in 0.58 secs 1301s ok 13 /sequence/random/seed:590523467 1301s # slow test /sequence/random/seed:590523467 executed in 0.60 secs 1302s ok 14 /sequence/random/seed:3583571454 1302s # slow test /sequence/random/seed:3583571454 executed in 0.61 secs 1302s ok 15 /sequence/random/seed:579241222 1302s # slow test /sequence/random/seed:579241222 executed in 0.60 secs 1303s ok - glib/sequence.test 1303s # Running test: glib/macros-c-89.test 1303s ok 16 /sequence/random/seed:185482385 1303s # slow test /sequence/random/seed:185482385 executed in 0.57 secs 1303s # End of random tests 1303s # End of sequence tests 1303s ok - glib/macros-c-89.test 1303s # Running test: glib/memchunk.test 1303s ok - glib/memchunk.test 1303s TAP version 14 1303s # random seed: R02Sbf8e1f483a1bb1f3107e7bc60cdae026 1303s 1..4 1303s # Start of C tests 1303s ok 1 /C/standard-89 1303s # End of C tests 1303s # Start of alignof tests 1303s ok 2 /alignof/fallback 1303s # End of alignof tests 1303s # Start of assert tests 1303s ok 3 /assert/static 1303s # End of assert tests 1303s # Start of struct tests 1303s ok 4 /struct/sizeof_member 1303s # End of struct tests 1303s # Running test: glib/basics-gobject.test 1303s ok - glib/basics-gobject.test 1303s # Running test: glib/mainloop.test 1303s TAP version 14 1303s # random seed: R02Se882d523108d824ea8218da4293613df 1303s 1..1 1303s # Start of memchunk tests 1303s ok 1 /memchunk/basic 1303s # End of memchunk tests 1303s TAP version 14 1303s # random seed: R02Sa6b756abb152c6acaa90821060c1a6a3 1303s 1..1 1303s # Start of gobject tests 1303s # private data during initialization: 54321 == 54321 1303s # MAIN: emit test-signal: 1303s # ::test_signal default_handler called 1303s # ::test_signal default_handler called 1303s # ::test_signal default_handler called 1303s # signal return: "" 1303s # MAIN: call iface print-string on test and derived object: 1303s # Iface-FOO: "iface-string-from-test-type" from 0x6ad4bd8 1303s # Iface-BAR: "iface-string-from-derived-type" from 0x6ad4aa8 1303s # chaining: 1303s # Iface-FOO: "iface-string-from-derived-type" from 0x6ad4aa8 1303s # private data after initialization: 54321 == 54321 1303s ok 1 /gobject/basics 1303s # End of gobject tests 1303s TAP version 14 1303s # random seed: R02S50dcc47486e5823ad0bb6a7cc6ee10b9 1303s 1..45 1303s # Start of maincontext tests 1303s ok 1 /maincontext/basic 1303s # Add same-priority sources: 29 1303s # Find each source: 3 1303s # Remove in random order: 41 1303s ok 2 /maincontext/nsources_same_priority 1303s # Add different-priority sources: 37 1303s # Find each source: 3 1303s # Remove in random order: 48 1303s ok 3 /maincontext/nsources_different_priority 1303s # Add sources from threads: 70 1303s # Remove sources from threads: 69 1303s ok 4 /maincontext/nsources_threadpool 1303s ok 5 /maincontext/source_finalization 1303s # /maincontext/idle-once summary: Test g_idle_add_once() works 1303s ok 6 /maincontext/idle-once 1303s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1303s ok 7 /maincontext/timeout-once 1303s # Start of source_finalization_from_source tests 1303s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 8 /maincontext/source_finalization_from_source/0 1303s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 9 /maincontext/source_finalization_from_source/1 1303s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 10 /maincontext/source_finalization_from_source/2 1303s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 11 /maincontext/source_finalization_from_source/3 1303s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 12 /maincontext/source_finalization_from_source/4 1303s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 13 /maincontext/source_finalization_from_source/5 1303s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 14 /maincontext/source_finalization_from_source/6 1303s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 15 /maincontext/source_finalization_from_source/7 1303s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 16 /maincontext/source_finalization_from_source/8 1303s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1303s ok 17 /maincontext/source_finalization_from_source/9 1303s # End of source_finalization_from_source tests 1303s # Start of source_finalization_from_dispatch tests 1303s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1303s ok 18 /maincontext/source_finalization_from_dispatch/0 1303s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1303s ok 19 /maincontext/source_finalization_from_dispatch/1 1303s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1303s ok 20 /maincontext/source_finalization_from_dispatch/2 1303s # End of source_finalization_from_dispatch tests 1303s # End of maincontext tests 1303s # Start of mainloop tests 1303s ok 21 /mainloop/basic 1303s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1303s ok 23 /mainloop/priorities 1304s ok 24 /mainloop/invoke 1304s # slow test /mainloop/invoke executed in 0.50 secs 1304s ok 25 /mainloop/child_sources # SKIP Not reliable on older ARM hardware 1304s ok 26 /mainloop/recursive_child_sources # SKIP Not reliable on older ARM hardware 1304s ok 27 /mainloop/recursive_loop_child_sources 1304s ok 28 /mainloop/swapping_child_sources 1304s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1304s ok 29 /mainloop/blocked_child_sources 1304s # Executing: glib/mainloop.test 1305s ok 30 /mainloop/source_time 1305s # slow test /mainloop/source_time executed in 1.00 secs 1305s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1305s ok 31 /mainloop/overflow 1305s ok 32 /mainloop/ready-time 1305s # slow test /mainloop/ready-time executed in 0.50 secs 1305s ok 33 /mainloop/wakeup 1305s ok 34 /mainloop/remove-invalid 1305s ok 35 /mainloop/unref-while-pending 1306s ok 36 /mainloop/unix-fd 1306s # slow test /mainloop/unix-fd executed in 0.94 secs 1306s ok 37 /mainloop/unix-fd-source 1306s ok 38 /mainloop/source-unix-fd-api 1307s ok 39 /mainloop/wait 1307s ok 40 /mainloop/unix-file-poll 1307s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1307s ok 41 /mainloop/unix-fd-priority 1307s ok 42 /mainloop/nfds 1307s ok 43 /mainloop/steal-fd 1307s # Start of ownerless-polling tests 1307s ok 44 /mainloop/ownerless-polling/attach-first 1307s ok 45 /mainloop/ownerless-polling/pop-first 1307s # End of ownerless-polling tests 1307s # End of mainloop tests 1307s ok - glib/mainloop.test 1307s # Running test: glib/gdbus-proxy-unique-name.test 1307s TAP version 14 1307s # random seed: R02Sd53cc90693f5474203b5f853f7130d4b 1307s 1..1 1307s # Start of gdbus tests 1307s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/home 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/cache 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/system-config2 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/config 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/system-data2 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/data 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/state 1307s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_H59V52/gdbus/proxy-unique-name/.dirs/runtime 1307s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1307s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1307s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1307s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1307s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1307s ok 1 /gdbus/proxy-unique-name 1307s # End of gdbus tests 1307s TAP version 14 1307s # random seed: R02Sf0935a65e8163d55bfaf406bf988d2de 1307s 1..4 1307s # Start of type tests 1307s # Start of flags tests 1307s ok 1 /type/flags/interface 1307s ok 2 /type/flags/final 1307s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1307s ok 3 /type/flags/deprecated 1307s # Start of final tests 1307s ok 4 /type/flags/final/instance-check 1307s # End of final tests 1307s # End of flags tests 1307s # End of type tests 1307s ok - glib/gdbus-proxy-unique-name.test 1307s # Running test: glib/type-flags.test 1307s ok - glib/type-flags.test 1307s TAP version 14 1307s # random seed: R02Sa6e14d4d889d0b90706da22b23897b5e 1307s # Running test: glib/param.test 1307s 1..32 1307s # Start of param tests 1307s ok 1 /param/value 1307s ok 2 /param/strings 1307s ok 3 /param/qdata 1307s ok 4 /param/validate 1307s ok 5 /param/convert 1307s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1307s ok 7 /param/default 1307s ok 8 /param/is-valid-name 1307s # Start of invalid-name tests 1307s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1307s ok 9 /param/invalid-name/colon 1307s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1307s ok 10 /param/invalid-name/first-char 1307s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1307s ok - glib/param.test 1307s ok 11 /param/invalid-name/empty 1307s # End of invalid-name tests 1307s # Start of implement tests 1307s # Start of subprocess tests 1307s # End of subprocess tests 1307s # End of implement tests 1307s # End of param tests 1307s # Start of value tests 1307s ok 12 /value/transform 1307s # End of value tests 1307s # Start of paramspec tests 1307s ok 13 /paramspec/char 1307s ok 14 /paramspec/uchar 1307s ok 15 /paramspec/int 1307s ok 16 /paramspec/uint 1307s ok 17 /paramspec/long 1307s ok 18 /paramspec/ulong 1307s ok 19 /paramspec/int64 1307s ok 20 /paramspec/uint64 1307s ok 21 /paramspec/float 1307s ok 22 /paramspec/double 1307s ok 23 /paramspec/unichar 1307s ok 24 /paramspec/param 1307s ok 25 /paramspec/null-param 1307s ok 26 /paramspec/string 1307s ok 27 /paramspec/override 1307s ok 28 /paramspec/gtype 1307s ok 29 /paramspec/variant 1307s ok 30 /paramspec/custom 1307s ok 31 /paramspec/pool 1307s # Start of variant tests 1307s ok 32 /paramspec/variant/cmp 1307s # End of variant tests 1307s # End of paramspec tests 1307s # Running test: glib/codegen.py.test 1307s TAP version 13 1307s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1307s # gdbus-codegen: /usr/bin/gdbus-codegen 1307s # tmpdir: /tmp/tmpz8fobp8y 1307s # /tmp/tmpz8fobp8y/tmp870ebcha.xml: 1307s # 1307s # 1307s # 1307s # 1307s # 1307s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpz8fobp8y/tmp870ebcha.xml', '--output', '-', '--header'] 1307s # Return code: 0 1307s # Output: 1307s # /* 1307s # * This file is generated by gdbus-codegen, do not modify it. 1307s # * 1307s # * The license of this code is the same as for the D-Bus interface description 1307s # * it was derived from. Note that it links to GLib, so must comply with the 1307s # * LGPL linking clauses. 1307s # */ 1307s # 1307s # #ifndef __STDOUT__ 1307s # #define __STDOUT__ 1307s # 1307s # #include 1307s # 1307s # G_BEGIN_DECLS 1307s # 1307s # 1307s # /* ------------------------------------------------------------------------ */ 1307s # /* Declarations for org.project.UsefulInterface */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1307s # 1307s # struct _OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1307s # 1307s # struct _OrgProjectUsefulInterfaceIface 1307s # { 1307s # GTypeInterface parent_iface; 1307s # 1307s # gboolean (*handle_useful_method) ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # }; 1307s # 1307s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1307s # 1307s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1307s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1307s # 1307s # 1307s # /* D-Bus method call completion functions: */ 1307s # void org_project_useful_interface_complete_useful_method ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # 1307s # 1307s # /* D-Bus method calls: */ 1307s # void org_project_useful_interface_call_useful_method ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_finish ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_sync ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxy 1307s # { 1307s # /*< private >*/ 1307s # GDBusProxy parent_instance; 1307s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxyClass 1307s # { 1307s # GDBusProxyClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1307s # #endif 1307s # 1307s # void org_project_useful_interface_proxy_new ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # void org_project_useful_interface_proxy_new_for_bus ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeleton 1307s # { 1307s # /*< private >*/ 1307s # GDBusInterfaceSkeleton parent_instance; 1307s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeletonClass 1307s # { 1307s # GDBusInterfaceSkeletonClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1307s # #endif 1307s # 1307s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1307s # 1307s # 1307s # G_END_DECLS 1307s # 1307s # #endif /* __STDOUT__ */ 1307s # Error: 1307s # 1307s # /tmp/tmpz8fobp8y/tmp58x3787l.xml: 1307s # 1307s # 1307s # 1307s # 1307s # 1307s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpz8fobp8y/tmp58x3787l.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1307s # Return code: 0 1307s # Output: 1307s # /* 1307s # * This file is generated by gdbus-codegen, do not modify it. 1307s # * 1307s # * The license of this code is the same as for the D-Bus interface description 1307s # * it was derived from. Note that it links to GLib, so must comply with the 1307s # * LGPL linking clauses. 1307s # */ 1307s # 1307s # #ifndef __STDOUT__ 1307s # #define __STDOUT__ 1307s # 1307s # #include 1307s # 1307s # G_BEGIN_DECLS 1307s # 1307s # 1307s # /* ------------------------------------------------------------------------ */ 1307s # /* Declarations for org.project.UsefulInterface */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1307s # 1307s # struct _OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1307s # 1307s # struct _OrgProjectUsefulInterfaceIface 1307s # { 1307s # GTypeInterface parent_iface; 1307s # 1307s # gboolean (*handle_useful_method) ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # }; 1307s # 1307s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1307s # 1307s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1307s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1307s # 1307s # 1307s # /* D-Bus method call completion functions: */ 1307s # void org_project_useful_interface_complete_useful_method ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # 1307s # 1307s # /* D-Bus method calls: */ 1307s # void org_project_useful_interface_call_useful_method ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_finish ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_sync ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxy 1307s # { 1307s # /*< private >*/ 1307s # GDBusProxy parent_instance; 1307s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxyClass 1307s # { 1307s # GDBusProxyClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1307s # #endif 1307s # 1307s # void org_project_useful_interface_proxy_new ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # void org_project_useful_interface_proxy_new_for_bus ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeleton 1307s # { 1307s # /*< private >*/ 1307s # GDBusInterfaceSkeleton parent_instance; 1307s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeletonClass 1307s # { 1307s # GDBusInterfaceSkeletonClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1307s # #endif 1307s # 1307s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1307s # 1307s # 1307s # G_END_DECLS 1307s # 1307s # #endif /* __STDOUT__ */ 1307s # Error: 1307s # 1307s # /tmp/tmpz8fobp8y/tmpifjs5hvt.xml: 1307s # 1307s # 1307s # 1307s # 1307s # 1307s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpz8fobp8y/tmpifjs5hvt.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1307s # Return code: 0 1307s # Output: 1307s # /* 1307s # * This file is generated by gdbus-codegen, do not modify it. 1307s # * 1307s # * The license of this code is the same as for the D-Bus interface description 1307s # * it was derived from. Note that it links to GLib, so must comply with the 1307s # * LGPL linking clauses. 1307s # */ 1307s # 1307s # #ifndef __STDOUT__ 1307s # #define __STDOUT__ 1307s # 1307s # #include 1307s # 1307s # G_BEGIN_DECLS 1307s # 1307s # 1307s # /* ------------------------------------------------------------------------ */ 1307s # /* Declarations for org.project.UsefulInterface */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1307s # 1307s # struct _OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1307s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1307s # 1307s # struct _OrgProjectUsefulInterfaceIface 1307s # { 1307s # GTypeInterface parent_iface; 1307s # 1307s # gboolean (*handle_useful_method) ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # }; 1307s # 1307s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1307s # 1307s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1307s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1307s # 1307s # 1307s # /* D-Bus method call completion functions: */ 1307s # void org_project_useful_interface_complete_useful_method ( 1307s # OrgProjectUsefulInterface *object, 1307s # GDBusMethodInvocation *invocation); 1307s # 1307s # 1307s # 1307s # /* D-Bus method calls: */ 1307s # void org_project_useful_interface_call_useful_method ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GDBusCallFlags call_flags, 1307s # gint timeout_msec, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_finish ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # 1307s # gboolean org_project_useful_interface_call_useful_method_sync ( 1307s # OrgProjectUsefulInterface *proxy, 1307s # GDBusCallFlags call_flags, 1307s # gint timeout_msec, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1307s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxy 1307s # { 1307s # /*< private >*/ 1307s # GDBusProxy parent_instance; 1307s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceProxyClass 1307s # { 1307s # GDBusProxyClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1307s # #endif 1307s # 1307s # void org_project_useful_interface_proxy_new ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1307s # GDBusConnection *connection, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # void org_project_useful_interface_proxy_new_for_bus ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GAsyncReadyCallback callback, 1307s # gpointer user_data); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1307s # GAsyncResult *res, 1307s # GError **error); 1307s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1307s # GBusType bus_type, 1307s # GDBusProxyFlags flags, 1307s # const gchar *name, 1307s # const gchar *object_path, 1307s # GCancellable *cancellable, 1307s # GError **error); 1307s # 1307s # 1307s # /* ---- */ 1307s # 1307s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1307s # 1307s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1307s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeleton 1307s # { 1307s # /*< private >*/ 1307s # GDBusInterfaceSkeleton parent_instance; 1307s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1307s # }; 1307s # 1307s # struct _OrgProjectUsefulInterfaceSkeletonClass 1307s # { 1307s # GDBusInterfaceSkeletonClass parent_class; 1307s # }; 1307s # 1307s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1307s # 1307s # #if GLIB_CHECK_VERSION(2, 44, 0) 1307s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1307s # #endif 1307s # 1307s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1307s # 1307s # 1307s # G_END_DECLS 1307s # 1307s # #endif /* __STDOUT__ */ 1307s # Error: 1308s ok 2 __main__.TestCodegen.test_dbus_types 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmp7xlkwsx9 1308s # /tmp/tmp7xlkwsx9/tmpf2tprk6i.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpf2tprk6i.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1308s # /tmp/tmp7xlkwsx9/tmpz_1l1hkt.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpz_1l1hkt.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1308s # /tmp/tmp7xlkwsx9/tmpbovci_k4.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpbovci_k4.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1308s # /tmp/tmp7xlkwsx9/tmptszt29d8.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmptszt29d8.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1308s # /tmp/tmp7xlkwsx9/tmpgagv1xyu.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpgagv1xyu.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1308s # /tmp/tmp7xlkwsx9/tmp38w4kkt1.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmp38w4kkt1.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1308s # /tmp/tmp7xlkwsx9/tmptqae58oj.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmptqae58oj.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1308s # /tmp/tmp7xlkwsx9/tmp83p08enx.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmp83p08enx.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1308s # /tmp/tmp7xlkwsx9/tmpidszyfjw.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpidszyfjw.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1308s # /tmp/tmp7xlkwsx9/tmp5bxekg29.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmp5bxekg29.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: D-Bus maximum signature length of 255 exceeded. 1308s # /tmp/tmp7xlkwsx9/tmpw_tdk6lp.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpw_tdk6lp.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: D-Bus maximum signature length of 255 exceeded. 1308s # /tmp/tmp7xlkwsx9/tmp9h0kkyze.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmp9h0kkyze.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1308s # /tmp/tmp7xlkwsx9/tmpzctbb8mu.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpzctbb8mu.xml', '--output', '-', '--body'] 1308s # Return code: 1 1308s # Output: 1308s # 1308s # Error: 1308s # ERROR: D-Bus maximum signature length of 255 exceeded. 1308s # /tmp/tmp7xlkwsx9/tmpthvc9p59.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpthvc9p59.xml', '--output', '-', '--body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # #ifdef G_OS_UNIX 1308s # # include 1308s # #endif 1308s # 1308s # #ifdef G_ENABLE_DEBUG 1308s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1308s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1308s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1308s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1308s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1308s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1308s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1308s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1308s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1308s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1308s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1308s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1308s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1308s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1308s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1308s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1308s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1308s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1308s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1308s # #else /* !G_ENABLE_DEBUG */ 1308s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1308s # * Do not access GValues directly in your code. Instead, use the 1308s # * g_value_get_*() functions 1308s # */ 1308s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1308s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1308s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1308s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1308s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1308s # #endif /* !G_ENABLE_DEBUG */ 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusArgInfo parent_struct; 1308s # gboolean use_gvariant; 1308s # } _ExtendedGDBusArgInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusMethodInfo parent_struct; 1308s # const gchar *signal_name; 1308s # gboolean pass_fdlist; 1308s # } _ExtendedGDBusMethodInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusSignalInfo parent_struct; 1308s # const gchar *signal_name; 1308s # } _ExtendedGDBusSignalInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusPropertyInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # guint use_gvariant : 1; 1308s # guint emits_changed_signal : 1; 1308s # } _ExtendedGDBusPropertyInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusInterfaceInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # } _ExtendedGDBusInterfaceInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # guint prop_id; 1308s # GValue orig_value; /* the value before the change */ 1308s # } ChangedProperty; 1308s # 1308s # static void 1308s # _changed_property_free (ChangedProperty *data) 1308s # { 1308s # g_value_unset (&data->orig_value); 1308s # g_free (data); 1308s # } 1308s # 1308s # static gboolean 1308s # _g_strv_equal0 (gchar **a, gchar **b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # guint n; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # if (g_strv_length (a) != g_strv_length (b)) 1308s # goto out; 1308s # for (n = 0; a[n] != NULL; n++) 1308s # if (g_strcmp0 (a[n], b[n]) != 0) 1308s # goto out; 1308s # ret = TRUE; 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _g_variant_equal0 (GVariant *a, GVariant *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # ret = g_variant_equal (a, b); 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # G_GNUC_UNUSED static gboolean 1308s # _g_value_equal (const GValue *a, const GValue *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1308s # switch (G_VALUE_TYPE (a)) 1308s # { 1308s # case G_TYPE_BOOLEAN: 1308s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1308s # break; 1308s # case G_TYPE_UCHAR: 1308s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1308s # break; 1308s # case G_TYPE_INT: 1308s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1308s # break; 1308s # case G_TYPE_UINT: 1308s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1308s # break; 1308s # case G_TYPE_INT64: 1308s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1308s # break; 1308s # case G_TYPE_UINT64: 1308s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1308s # break; 1308s # case G_TYPE_DOUBLE: 1308s # { 1308s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1308s # gdouble da = g_value_get_double (a); 1308s # gdouble db = g_value_get_double (b); 1308s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1308s # } 1308s # break; 1308s # case G_TYPE_STRING: 1308s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1308s # break; 1308s # case G_TYPE_VARIANT: 1308s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1308s # break; 1308s # default: 1308s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1308s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1308s # else 1308s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1308s # break; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ 1308s # * Code for interface GoodTypes 1308s # * ------------------------------------------------------------------------ 1308s # */ 1308s # 1308s # /** 1308s # * SECTION:GoodTypes 1308s # * @title: GoodTypes 1308s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1308s # * 1308s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1308s # */ 1308s # 1308s # /* ---- Introspection data for GoodTypes ---- */ 1308s # 1308s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodPropertyType", 1308s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1308s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1308s # NULL 1308s # }, 1308s # "good-property-type", 1308s # FALSE, 1308s # TRUE 1308s # }; 1308s # 1308s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1308s # { 1308s # &_good_types_property_info_good_property_type.parent_struct, 1308s # NULL 1308s # }; 1308s # 1308s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodTypes", 1308s # NULL, 1308s # NULL, 1308s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1308s # NULL 1308s # }, 1308s # "good-types", 1308s # }; 1308s # 1308s # 1308s # /** 1308s # * good_types_interface_info: 1308s # * 1308s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1308s # * 1308s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1308s # */ 1308s # GDBusInterfaceInfo * 1308s # good_types_interface_info (void) 1308s # { 1308s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1308s # } 1308s # 1308s # /** 1308s # * good_types_override_properties: 1308s # * @klass: The class structure for a #GObject derived class. 1308s # * @property_id_begin: The property id to assign to the first overridden property. 1308s # * 1308s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1308s # * The properties are overridden in the order they are defined. 1308s # * 1308s # * Returns: The last property id. 1308s # */ 1308s # guint 1308s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1308s # { 1308s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1308s # return property_id_begin - 1; 1308s # } 1308s # 1308s # 1308s # 1308s # /** 1308s # * GoodTypes: 1308s # * 1308s # * Abstract interface type for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesIface: 1308s # * @parent_iface: The parent interface. 1308s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1308s # * 1308s # * Virtual table for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # typedef GoodTypesIface GoodTypesInterface; 1308s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1308s # 1308s # static void 1308s # good_types_default_init (GoodTypesIface *iface) 1308s # { 1308s # /* GObject properties for D-Bus properties: */ 1308s # /** 1308s # * GoodTypes:good-property-type: 1308s # * 1308s # * Represents the D-Bus property "GoodPropertyType". 1308s # * 1308s # * 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. 1308s # */ 1308s # g_object_interface_install_property (iface, 1308s # 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)); 1308s # } 1308s # 1308s # /** 1308s # * good_types_get_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets the value of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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. 1308s # * 1308s # * 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. 1308s # */ 1308s # GVariant * 1308s # good_types_get_good_property_type (GoodTypes *object) 1308s # { 1308s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1308s # 1308s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1308s # } 1308s # 1308s # /** 1308s # * good_types_dup_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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(). 1308s # */ 1308s # GVariant * 1308s # good_types_dup_good_property_type (GoodTypes *object) 1308s # { 1308s # GVariant *value; 1308s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1308s # return value; 1308s # } 1308s # 1308s # /** 1308s # * good_types_set_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * @value: The value to set. 1308s # * 1308s # * Sets the "GoodPropertyType" D-Bus property to @value. 1308s # * 1308s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1308s # */ 1308s # void 1308s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1308s # { 1308s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesProxy: 1308s # * 1308s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesProxyClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesProxy. 1308s # */ 1308s # 1308s # struct _GoodTypesProxyPrivate 1308s # { 1308s # GData *qdata; 1308s # }; 1308s # 1308s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_ADD_PRIVATE (GoodTypesProxy) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_proxy_finalize (GObject *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # g_datalist_clear (&proxy->priv->qdata); 1308s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1308s # if (info->use_gvariant) 1308s # { 1308s # g_value_set_variant (value, variant); 1308s # } 1308s # else 1308s # { 1308s # if (variant != NULL) 1308s # g_dbus_gvariant_to_gvalue (variant, value); 1308s # } 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1308s # GAsyncResult *res, 1308s # gpointer user_data) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info = user_data; 1308s # GError *error; 1308s # GVariant *_ret; 1308s # error = NULL; 1308s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1308s # if (!_ret) 1308s # { 1308s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1308s # info->parent_struct.name, 1308s # error->message, g_quark_to_string (error->domain), error->code); 1308s # g_error_free (error); 1308s # } 1308s # else 1308s # { 1308s # g_variant_unref (_ret); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1308s # "org.freedesktop.DBus.Properties.Set", 1308s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_signal (GDBusProxy *proxy, 1308s # const gchar *sender_name G_GNUC_UNUSED, 1308s # const gchar *signal_name, 1308s # GVariant *parameters) 1308s # { 1308s # _ExtendedGDBusSignalInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # gsize n; 1308s # guint signal_id; 1308s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1308s # if (info == NULL) 1308s # return; 1308s # num_params = g_variant_n_children (parameters); 1308s # paramv = g_new0 (GValue, num_params + 1); 1308s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[0], proxy); 1308s # g_variant_iter_init (&iter, parameters); 1308s # n = 1; 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_signal_emitv (paramv, signal_id, 0, NULL); 1308s # for (n = 0; n < num_params + 1; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1308s # GVariant *changed_properties, 1308s # const gchar *const *invalidated_properties) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1308s # guint n; 1308s # const gchar *key; 1308s # GVariantIter *iter; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # g_variant_get (changed_properties, "a{sv}", &iter); 1308s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1308s # g_datalist_remove_data (&proxy->priv->qdata, key); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # g_variant_iter_free (iter); 1308s # for (n = 0; invalidated_properties[n] != NULL; n++) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1308s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_proxy_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # GVariant *variant; 1308s # GVariant *value = NULL; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1308s # value = variant; 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_init (GoodTypesProxy *proxy) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1308s # #else 1308s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1308s # #endif 1308s # 1308s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusProxyClass *proxy_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_proxy_finalize; 1308s # gobject_class->get_property = good_types_proxy_get_property; 1308s # gobject_class->set_property = good_types_proxy_set_property; 1308s # 1308s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1308s # proxy_class->g_signal = good_types_proxy_g_signal; 1308s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_sync: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_sync ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new_for_bus ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_sync: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_sync ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesSkeleton: 1308s # * 1308s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesSkeletonClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesSkeleton. 1308s # */ 1308s # 1308s # struct _GoodTypesSkeletonPrivate 1308s # { 1308s # GValue *properties; 1308s # GList *changed_properties; 1308s # GSource *changed_properties_idle_source; 1308s # GMainContext *context; 1308s # GMutex lock; 1308s # }; 1308s # 1308s # static void 1308s # _good_types_skeleton_handle_method_call ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name, 1308s # const gchar *method_name, 1308s # GVariant *parameters, 1308s # GDBusMethodInvocation *invocation, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # _ExtendedGDBusMethodInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # guint num_extra; 1308s # gsize n; 1308s # guint signal_id; 1308s # GValue return_value = G_VALUE_INIT; 1308s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1308s # g_assert (info != NULL); 1308s # num_params = g_variant_n_children (parameters); 1308s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1308s # n = 0; 1308s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[n++], skeleton); 1308s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1308s # g_value_set_object (¶mv[n++], invocation); 1308s # if (info->pass_fdlist) 1308s # { 1308s # #ifdef G_OS_UNIX 1308s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1308s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1308s # #else 1308s # g_assert_not_reached (); 1308s # #endif 1308s # } 1308s # g_variant_iter_init (&iter, parameters); 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1308s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1308s # if (!g_value_get_boolean (&return_value)) 1308s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1308s # g_value_unset (&return_value); 1308s # for (n = 0; n < num_params + num_extra; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static GVariant * 1308s # _good_types_skeleton_handle_get_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *ret; 1308s # ret = NULL; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # g_value_init (&value, pspec->value_type); 1308s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_value_unset (&value); 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_skeleton_handle_set_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GVariant *variant, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # gboolean ret; 1308s # ret = FALSE; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # if (info->use_gvariant) 1308s # g_value_set_variant (&value, variant); 1308s # else 1308s # g_dbus_gvariant_to_gvalue (variant, &value); 1308s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # g_value_unset (&value); 1308s # ret = TRUE; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1308s # { 1308s # _good_types_skeleton_handle_method_call, 1308s # _good_types_skeleton_handle_get_property, 1308s # _good_types_skeleton_handle_set_property, 1308s # {NULL} 1308s # }; 1308s # 1308s # static GDBusInterfaceInfo * 1308s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return good_types_interface_info (); 1308s # } 1308s # 1308s # static GDBusInterfaceVTable * 1308s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # 1308s # GVariantBuilder builder; 1308s # guint n; 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #else 1308s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #endif 1308s # if (_good_types_interface_info.parent_struct.properties == NULL) 1308s # goto out; 1308s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1308s # { 1308s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1308s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1308s # { 1308s # GVariant *value; 1308s # 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); 1308s # if (value != NULL) 1308s # { 1308s # g_variant_take_ref (value); 1308s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1308s # g_variant_unref (value); 1308s # } 1308s # } 1308s # } 1308s # out: 1308s # return g_variant_builder_end (&builder); 1308s # } 1308s # 1308s # static gboolean _good_types_emit_changed (gpointer user_data); 1308s # 1308s # static void 1308s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # gboolean emit_changed = FALSE; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # { 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # emit_changed = TRUE; 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # 1308s # if (emit_changed) 1308s # _good_types_emit_changed (skeleton); 1308s # } 1308s # 1308s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_ADD_PRIVATE (GoodTypesSkeleton) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_skeleton_finalize (GObject *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # guint n; 1308s # for (n = 0; n < 1; n++) 1308s # g_value_unset (&skeleton->priv->properties[n]); 1308s # g_free (skeleton->priv->properties); 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # g_main_context_unref (skeleton->priv->context); 1308s # g_mutex_clear (&skeleton->priv->lock); 1308s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_emit_changed (gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GList *l; 1308s # GVariantBuilder builder; 1308s # GVariantBuilder invalidated_builder; 1308s # guint num_changes; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #else 1308s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #endif 1308s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *cp = l->data; 1308s # GVariant *variant; 1308s # const GValue *cur_value; 1308s # 1308s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1308s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1308s # { 1308s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1308s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1308s # g_variant_unref (variant); 1308s # num_changes++; 1308s # } 1308s # } 1308s # if (num_changes > 0) 1308s # { 1308s # GList *connections, *ll; 1308s # GVariant *signal_variant; 1308s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1308s # &builder, &invalidated_builder)); 1308s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1308s # for (ll = connections; ll != NULL; ll = ll->next) 1308s # { 1308s # GDBusConnection *connection = ll->data; 1308s # 1308s # g_dbus_connection_emit_signal (connection, 1308s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1308s # "org.freedesktop.DBus.Properties", 1308s # "PropertiesChanged", 1308s # signal_variant, 1308s # NULL); 1308s # } 1308s # g_variant_unref (signal_variant); 1308s # g_list_free_full (connections, g_object_unref); 1308s # } 1308s # else 1308s # { 1308s # g_variant_builder_clear (&builder); 1308s # g_variant_builder_clear (&invalidated_builder); 1308s # } 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # skeleton->priv->changed_properties = NULL; 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return FALSE; 1308s # } 1308s # 1308s # static void 1308s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1308s # { 1308s # ChangedProperty *cp; 1308s # GList *l; 1308s # cp = NULL; 1308s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *i_cp = l->data; 1308s # if (i_cp->info == info) 1308s # { 1308s # cp = i_cp; 1308s # break; 1308s # } 1308s # } 1308s # if (cp == NULL) 1308s # { 1308s # cp = g_new0 (ChangedProperty, 1); 1308s # cp->prop_id = prop_id; 1308s # cp->info = info; 1308s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1308s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1308s # g_value_copy (orig_value, &cp->orig_value); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_notify (GObject *object, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties != NULL && 1308s # skeleton->priv->changed_properties_idle_source == NULL) 1308s # { 1308s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1308s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1308s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1308s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1308s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1308s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_object_freeze_notify (object); 1308s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1308s # { 1308s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1308s # info->emits_changed_signal) 1308s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1308s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1308s # g_object_notify_by_pspec (object, pspec); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # g_object_thaw_notify (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1308s # #else 1308s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1308s # #endif 1308s # 1308s # g_mutex_init (&skeleton->priv->lock); 1308s # skeleton->priv->context = g_main_context_ref_thread_default (); 1308s # skeleton->priv->properties = g_new0 (GValue, 1); 1308s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # GVariant *value; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusInterfaceSkeletonClass *skeleton_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_skeleton_finalize; 1308s # gobject_class->get_property = good_types_skeleton_get_property; 1308s # gobject_class->set_property = good_types_skeleton_set_property; 1308s # gobject_class->notify = good_types_skeleton_notify; 1308s # 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1308s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1308s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1308s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1308s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_skeleton_new: 1308s # * 1308s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1308s # */ 1308s # GoodTypes * 1308s # good_types_skeleton_new (void) 1308s # { 1308s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1308s # } 1308s # Error: 1308s # 1308s # /tmp/tmp7xlkwsx9/tmpw1zll1cq.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmpw1zll1cq.xml', '--output', '-', '--body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # #ifdef G_OS_UNIX 1308s # # include 1308s # #endif 1308s # 1308s # #ifdef G_ENABLE_DEBUG 1308s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1308s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1308s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1308s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1308s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1308s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1308s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1308s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1308s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1308s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1308s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1308s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1308s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1308s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1308s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1308s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1308s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1308s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1308s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1308s # #else /* !G_ENABLE_DEBUG */ 1308s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1308s # * Do not access GValues directly in your code. Instead, use the 1308s # * g_value_get_*() functions 1308s # */ 1308s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1308s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1308s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1308s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1308s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1308s # #endif /* !G_ENABLE_DEBUG */ 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusArgInfo parent_struct; 1308s # gboolean use_gvariant; 1308s # } _ExtendedGDBusArgInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusMethodInfo parent_struct; 1308s # const gchar *signal_name; 1308s # gboolean pass_fdlist; 1308s # } _ExtendedGDBusMethodInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusSignalInfo parent_struct; 1308s # const gchar *signal_name; 1308s # } _ExtendedGDBusSignalInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusPropertyInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # guint use_gvariant : 1; 1308s # guint emits_changed_signal : 1; 1308s # } _ExtendedGDBusPropertyInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusInterfaceInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # } _ExtendedGDBusInterfaceInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # guint prop_id; 1308s # GValue orig_value; /* the value before the change */ 1308s # } ChangedProperty; 1308s # 1308s # static void 1308s # _changed_property_free (ChangedProperty *data) 1308s # { 1308s # g_value_unset (&data->orig_value); 1308s # g_free (data); 1308s # } 1308s # 1308s # static gboolean 1308s # _g_strv_equal0 (gchar **a, gchar **b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # guint n; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # if (g_strv_length (a) != g_strv_length (b)) 1308s # goto out; 1308s # for (n = 0; a[n] != NULL; n++) 1308s # if (g_strcmp0 (a[n], b[n]) != 0) 1308s # goto out; 1308s # ret = TRUE; 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _g_variant_equal0 (GVariant *a, GVariant *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # ret = g_variant_equal (a, b); 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # G_GNUC_UNUSED static gboolean 1308s # _g_value_equal (const GValue *a, const GValue *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1308s # switch (G_VALUE_TYPE (a)) 1308s # { 1308s # case G_TYPE_BOOLEAN: 1308s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1308s # break; 1308s # case G_TYPE_UCHAR: 1308s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1308s # break; 1308s # case G_TYPE_INT: 1308s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1308s # break; 1308s # case G_TYPE_UINT: 1308s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1308s # break; 1308s # case G_TYPE_INT64: 1308s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1308s # break; 1308s # case G_TYPE_UINT64: 1308s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1308s # break; 1308s # case G_TYPE_DOUBLE: 1308s # { 1308s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1308s # gdouble da = g_value_get_double (a); 1308s # gdouble db = g_value_get_double (b); 1308s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1308s # } 1308s # break; 1308s # case G_TYPE_STRING: 1308s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1308s # break; 1308s # case G_TYPE_VARIANT: 1308s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1308s # break; 1308s # default: 1308s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1308s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1308s # else 1308s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1308s # break; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ 1308s # * Code for interface GoodTypes 1308s # * ------------------------------------------------------------------------ 1308s # */ 1308s # 1308s # /** 1308s # * SECTION:GoodTypes 1308s # * @title: GoodTypes 1308s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1308s # * 1308s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1308s # */ 1308s # 1308s # /* ---- Introspection data for GoodTypes ---- */ 1308s # 1308s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodPropertyType", 1308s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1308s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1308s # NULL 1308s # }, 1308s # "good-property-type", 1308s # FALSE, 1308s # TRUE 1308s # }; 1308s # 1308s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1308s # { 1308s # &_good_types_property_info_good_property_type.parent_struct, 1308s # NULL 1308s # }; 1308s # 1308s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodTypes", 1308s # NULL, 1308s # NULL, 1308s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1308s # NULL 1308s # }, 1308s # "good-types", 1308s # }; 1308s # 1308s # 1308s # /** 1308s # * good_types_interface_info: 1308s # * 1308s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1308s # * 1308s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1308s # */ 1308s # GDBusInterfaceInfo * 1308s # good_types_interface_info (void) 1308s # { 1308s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1308s # } 1308s # 1308s # /** 1308s # * good_types_override_properties: 1308s # * @klass: The class structure for a #GObject derived class. 1308s # * @property_id_begin: The property id to assign to the first overridden property. 1308s # * 1308s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1308s # * The properties are overridden in the order they are defined. 1308s # * 1308s # * Returns: The last property id. 1308s # */ 1308s # guint 1308s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1308s # { 1308s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1308s # return property_id_begin - 1; 1308s # } 1308s # 1308s # 1308s # 1308s # /** 1308s # * GoodTypes: 1308s # * 1308s # * Abstract interface type for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesIface: 1308s # * @parent_iface: The parent interface. 1308s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1308s # * 1308s # * Virtual table for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # typedef GoodTypesIface GoodTypesInterface; 1308s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1308s # 1308s # static void 1308s # good_types_default_init (GoodTypesIface *iface) 1308s # { 1308s # /* GObject properties for D-Bus properties: */ 1308s # /** 1308s # * GoodTypes:good-property-type: 1308s # * 1308s # * Represents the D-Bus property "GoodPropertyType". 1308s # * 1308s # * 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. 1308s # */ 1308s # g_object_interface_install_property (iface, 1308s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1308s # } 1308s # 1308s # /** 1308s # * good_types_get_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets the value of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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. 1308s # * 1308s # * 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. 1308s # */ 1308s # GVariant * 1308s # good_types_get_good_property_type (GoodTypes *object) 1308s # { 1308s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1308s # 1308s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1308s # } 1308s # 1308s # /** 1308s # * good_types_dup_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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(). 1308s # */ 1308s # GVariant * 1308s # good_types_dup_good_property_type (GoodTypes *object) 1308s # { 1308s # GVariant *value; 1308s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1308s # return value; 1308s # } 1308s # 1308s # /** 1308s # * good_types_set_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * @value: The value to set. 1308s # * 1308s # * Sets the "GoodPropertyType" D-Bus property to @value. 1308s # * 1308s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1308s # */ 1308s # void 1308s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1308s # { 1308s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesProxy: 1308s # * 1308s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesProxyClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesProxy. 1308s # */ 1308s # 1308s # struct _GoodTypesProxyPrivate 1308s # { 1308s # GData *qdata; 1308s # }; 1308s # 1308s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_ADD_PRIVATE (GoodTypesProxy) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_proxy_finalize (GObject *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # g_datalist_clear (&proxy->priv->qdata); 1308s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1308s # if (info->use_gvariant) 1308s # { 1308s # g_value_set_variant (value, variant); 1308s # } 1308s # else 1308s # { 1308s # if (variant != NULL) 1308s # g_dbus_gvariant_to_gvalue (variant, value); 1308s # } 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1308s # GAsyncResult *res, 1308s # gpointer user_data) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info = user_data; 1308s # GError *error; 1308s # GVariant *_ret; 1308s # error = NULL; 1308s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1308s # if (!_ret) 1308s # { 1308s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1308s # info->parent_struct.name, 1308s # error->message, g_quark_to_string (error->domain), error->code); 1308s # g_error_free (error); 1308s # } 1308s # else 1308s # { 1308s # g_variant_unref (_ret); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1308s # "org.freedesktop.DBus.Properties.Set", 1308s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_signal (GDBusProxy *proxy, 1308s # const gchar *sender_name G_GNUC_UNUSED, 1308s # const gchar *signal_name, 1308s # GVariant *parameters) 1308s # { 1308s # _ExtendedGDBusSignalInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # gsize n; 1308s # guint signal_id; 1308s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1308s # if (info == NULL) 1308s # return; 1308s # num_params = g_variant_n_children (parameters); 1308s # paramv = g_new0 (GValue, num_params + 1); 1308s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[0], proxy); 1308s # g_variant_iter_init (&iter, parameters); 1308s # n = 1; 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_signal_emitv (paramv, signal_id, 0, NULL); 1308s # for (n = 0; n < num_params + 1; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1308s # GVariant *changed_properties, 1308s # const gchar *const *invalidated_properties) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1308s # guint n; 1308s # const gchar *key; 1308s # GVariantIter *iter; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # g_variant_get (changed_properties, "a{sv}", &iter); 1308s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1308s # g_datalist_remove_data (&proxy->priv->qdata, key); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # g_variant_iter_free (iter); 1308s # for (n = 0; invalidated_properties[n] != NULL; n++) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1308s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_proxy_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # GVariant *variant; 1308s # GVariant *value = NULL; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1308s # value = variant; 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_init (GoodTypesProxy *proxy) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1308s # #else 1308s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1308s # #endif 1308s # 1308s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusProxyClass *proxy_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_proxy_finalize; 1308s # gobject_class->get_property = good_types_proxy_get_property; 1308s # gobject_class->set_property = good_types_proxy_set_property; 1308s # 1308s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1308s # proxy_class->g_signal = good_types_proxy_g_signal; 1308s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_sync: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_sync ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new_for_bus ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_sync: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_sync ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesSkeleton: 1308s # * 1308s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesSkeletonClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesSkeleton. 1308s # */ 1308s # 1308s # struct _GoodTypesSkeletonPrivate 1308s # { 1308s # GValue *properties; 1308s # GList *changed_properties; 1308s # GSource *changed_properties_idle_source; 1308s # GMainContext *context; 1308s # GMutex lock; 1308s # }; 1308s # 1308s # static void 1308s # _good_types_skeleton_handle_method_call ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name, 1308s # const gchar *method_name, 1308s # GVariant *parameters, 1308s # GDBusMethodInvocation *invocation, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # _ExtendedGDBusMethodInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # guint num_extra; 1308s # gsize n; 1308s # guint signal_id; 1308s # GValue return_value = G_VALUE_INIT; 1308s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1308s # g_assert (info != NULL); 1308s # num_params = g_variant_n_children (parameters); 1308s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1308s # n = 0; 1308s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[n++], skeleton); 1308s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1308s # g_value_set_object (¶mv[n++], invocation); 1308s # if (info->pass_fdlist) 1308s # { 1308s # #ifdef G_OS_UNIX 1308s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1308s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1308s # #else 1308s # g_assert_not_reached (); 1308s # #endif 1308s # } 1308s # g_variant_iter_init (&iter, parameters); 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1308s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1308s # if (!g_value_get_boolean (&return_value)) 1308s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1308s # g_value_unset (&return_value); 1308s # for (n = 0; n < num_params + num_extra; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static GVariant * 1308s # _good_types_skeleton_handle_get_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *ret; 1308s # ret = NULL; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # g_value_init (&value, pspec->value_type); 1308s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_value_unset (&value); 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_skeleton_handle_set_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GVariant *variant, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # gboolean ret; 1308s # ret = FALSE; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # if (info->use_gvariant) 1308s # g_value_set_variant (&value, variant); 1308s # else 1308s # g_dbus_gvariant_to_gvalue (variant, &value); 1308s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # g_value_unset (&value); 1308s # ret = TRUE; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1308s # { 1308s # _good_types_skeleton_handle_method_call, 1308s # _good_types_skeleton_handle_get_property, 1308s # _good_types_skeleton_handle_set_property, 1308s # {NULL} 1308s # }; 1308s # 1308s # static GDBusInterfaceInfo * 1308s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return good_types_interface_info (); 1308s # } 1308s # 1308s # static GDBusInterfaceVTable * 1308s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # 1308s # GVariantBuilder builder; 1308s # guint n; 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #else 1308s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #endif 1308s # if (_good_types_interface_info.parent_struct.properties == NULL) 1308s # goto out; 1308s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1308s # { 1308s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1308s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1308s # { 1308s # GVariant *value; 1308s # 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); 1308s # if (value != NULL) 1308s # { 1308s # g_variant_take_ref (value); 1308s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1308s # g_variant_unref (value); 1308s # } 1308s # } 1308s # } 1308s # out: 1308s # return g_variant_builder_end (&builder); 1308s # } 1308s # 1308s # static gboolean _good_types_emit_changed (gpointer user_data); 1308s # 1308s # static void 1308s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # gboolean emit_changed = FALSE; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # { 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # emit_changed = TRUE; 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # 1308s # if (emit_changed) 1308s # _good_types_emit_changed (skeleton); 1308s # } 1308s # 1308s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_ADD_PRIVATE (GoodTypesSkeleton) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_skeleton_finalize (GObject *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # guint n; 1308s # for (n = 0; n < 1; n++) 1308s # g_value_unset (&skeleton->priv->properties[n]); 1308s # g_free (skeleton->priv->properties); 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # g_main_context_unref (skeleton->priv->context); 1308s # g_mutex_clear (&skeleton->priv->lock); 1308s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_emit_changed (gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GList *l; 1308s # GVariantBuilder builder; 1308s # GVariantBuilder invalidated_builder; 1308s # guint num_changes; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #else 1308s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #endif 1308s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *cp = l->data; 1308s # GVariant *variant; 1308s # const GValue *cur_value; 1308s # 1308s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1308s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1308s # { 1308s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1308s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1308s # g_variant_unref (variant); 1308s # num_changes++; 1308s # } 1308s # } 1308s # if (num_changes > 0) 1308s # { 1308s # GList *connections, *ll; 1308s # GVariant *signal_variant; 1308s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1308s # &builder, &invalidated_builder)); 1308s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1308s # for (ll = connections; ll != NULL; ll = ll->next) 1308s # { 1308s # GDBusConnection *connection = ll->data; 1308s # 1308s # g_dbus_connection_emit_signal (connection, 1308s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1308s # "org.freedesktop.DBus.Properties", 1308s # "PropertiesChanged", 1308s # signal_variant, 1308s # NULL); 1308s # } 1308s # g_variant_unref (signal_variant); 1308s # g_list_free_full (connections, g_object_unref); 1308s # } 1308s # else 1308s # { 1308s # g_variant_builder_clear (&builder); 1308s # g_variant_builder_clear (&invalidated_builder); 1308s # } 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # skeleton->priv->changed_properties = NULL; 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return FALSE; 1308s # } 1308s # 1308s # static void 1308s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1308s # { 1308s # ChangedProperty *cp; 1308s # GList *l; 1308s # cp = NULL; 1308s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *i_cp = l->data; 1308s # if (i_cp->info == info) 1308s # { 1308s # cp = i_cp; 1308s # break; 1308s # } 1308s # } 1308s # if (cp == NULL) 1308s # { 1308s # cp = g_new0 (ChangedProperty, 1); 1308s # cp->prop_id = prop_id; 1308s # cp->info = info; 1308s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1308s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1308s # g_value_copy (orig_value, &cp->orig_value); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_notify (GObject *object, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties != NULL && 1308s # skeleton->priv->changed_properties_idle_source == NULL) 1308s # { 1308s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1308s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1308s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1308s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1308s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1308s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_object_freeze_notify (object); 1308s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1308s # { 1308s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1308s # info->emits_changed_signal) 1308s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1308s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1308s # g_object_notify_by_pspec (object, pspec); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # g_object_thaw_notify (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1308s # #else 1308s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1308s # #endif 1308s # 1308s # g_mutex_init (&skeleton->priv->lock); 1308s # skeleton->priv->context = g_main_context_ref_thread_default (); 1308s # skeleton->priv->properties = g_new0 (GValue, 1); 1308s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # GVariant *value; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusInterfaceSkeletonClass *skeleton_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_skeleton_finalize; 1308s # gobject_class->get_property = good_types_skeleton_get_property; 1308s # gobject_class->set_property = good_types_skeleton_set_property; 1308s # gobject_class->notify = good_types_skeleton_notify; 1308s # 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1308s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1308s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1308s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1308s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_skeleton_new: 1308s # * 1308s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1308s # */ 1308s # GoodTypes * 1308s # good_types_skeleton_new (void) 1308s # { 1308s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1308s # } 1308s # Error: 1308s # 1308s # /tmp/tmp7xlkwsx9/tmphntv887z.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7xlkwsx9/tmphntv887z.xml', '--output', '-', '--body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # #ifdef G_OS_UNIX 1308s # # include 1308s # #endif 1308s # 1308s # #ifdef G_ENABLE_DEBUG 1308s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1308s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1308s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1308s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1308s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1308s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1308s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1308s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1308s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1308s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1308s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1308s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1308s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1308s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1308s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1308s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1308s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1308s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1308s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1308s # #else /* !G_ENABLE_DEBUG */ 1308s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1308s # * Do not access GValues directly in your code. Instead, use the 1308s # * g_value_get_*() functions 1308s # */ 1308s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1308s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1308s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1308s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1308s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1308s # #endif /* !G_ENABLE_DEBUG */ 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusArgInfo parent_struct; 1308s # gboolean use_gvariant; 1308s # } _ExtendedGDBusArgInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusMethodInfo parent_struct; 1308s # const gchar *signal_name; 1308s # gboolean pass_fdlist; 1308s # } _ExtendedGDBusMethodInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusSignalInfo parent_struct; 1308s # const gchar *signal_name; 1308s # } _ExtendedGDBusSignalInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusPropertyInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # guint use_gvariant : 1; 1308s # guint emits_changed_signal : 1; 1308s # } _ExtendedGDBusPropertyInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusInterfaceInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # } _ExtendedGDBusInterfaceInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # guint prop_id; 1308s # GValue orig_value; /* the value before the change */ 1308s # } ChangedProperty; 1308s # 1308s # static void 1308s # _changed_property_free (ChangedProperty *data) 1308s # { 1308s # g_value_unset (&data->orig_value); 1308s # g_free (data); 1308s # } 1308s # 1308s # static gboolean 1308s # _g_strv_equal0 (gchar **a, gchar **b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # guint n; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # if (g_strv_length (a) != g_strv_length (b)) 1308s # goto out; 1308s # for (n = 0; a[n] != NULL; n++) 1308s # if (g_strcmp0 (a[n], b[n]) != 0) 1308s # goto out; 1308s # ret = TRUE; 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _g_variant_equal0 (GVariant *a, GVariant *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # ret = g_variant_equal (a, b); 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # G_GNUC_UNUSED static gboolean 1308s # _g_value_equal (const GValue *a, const GValue *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1308s # switch (G_VALUE_TYPE (a)) 1308s # { 1308s # case G_TYPE_BOOLEAN: 1308s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1308s # break; 1308s # case G_TYPE_UCHAR: 1308s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1308s # break; 1308s # case G_TYPE_INT: 1308s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1308s # break; 1308s # case G_TYPE_UINT: 1308s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1308s # break; 1308s # case G_TYPE_INT64: 1308s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1308s # break; 1308s # case G_TYPE_UINT64: 1308s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1308s # break; 1308s # case G_TYPE_DOUBLE: 1308s # { 1308s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1308s # gdouble da = g_value_get_double (a); 1308s # gdouble db = g_value_get_double (b); 1308s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1308s # } 1308s # break; 1308s # case G_TYPE_STRING: 1308s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1308s # break; 1308s # case G_TYPE_VARIANT: 1308s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1308s # break; 1308s # default: 1308s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1308s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1308s # else 1308s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1308s # break; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ 1308s # * Code for interface GoodTypes 1308s # * ------------------------------------------------------------------------ 1308s # */ 1308s # 1308s # /** 1308s # * SECTION:GoodTypes 1308s # * @title: GoodTypes 1308s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1308s # * 1308s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1308s # */ 1308s # 1308s # /* ---- Introspection data for GoodTypes ---- */ 1308s # 1308s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodPropertyType", 1308s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1308s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1308s # NULL 1308s # }, 1308s # "good-property-type", 1308s # FALSE, 1308s # TRUE 1308s # }; 1308s # 1308s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1308s # { 1308s # &_good_types_property_info_good_property_type.parent_struct, 1308s # NULL 1308s # }; 1308s # 1308s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "GoodTypes", 1308s # NULL, 1308s # NULL, 1308s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1308s # NULL 1308s # }, 1308s # "good-types", 1308s # }; 1308s # 1308s # 1308s # /** 1308s # * good_types_interface_info: 1308s # * 1308s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1308s # * 1308s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1308s # */ 1308s # GDBusInterfaceInfo * 1308s # good_types_interface_info (void) 1308s # { 1308s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1308s # } 1308s # 1308s # /** 1308s # * good_types_override_properties: 1308s # * @klass: The class structure for a #GObject derived class. 1308s # * @property_id_begin: The property id to assign to the first overridden property. 1308s # * 1308s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1308s # * The properties are overridden in the order they are defined. 1308s # * 1308s # * Returns: The last property id. 1308s # */ 1308s # guint 1308s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1308s # { 1308s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1308s # return property_id_begin - 1; 1308s # } 1308s # 1308s # 1308s # 1308s # /** 1308s # * GoodTypes: 1308s # * 1308s # * Abstract interface type for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesIface: 1308s # * @parent_iface: The parent interface. 1308s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1308s # * 1308s # * Virtual table for the D-Bus interface GoodTypes. 1308s # */ 1308s # 1308s # typedef GoodTypesIface GoodTypesInterface; 1308s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1308s # 1308s # static void 1308s # good_types_default_init (GoodTypesIface *iface) 1308s # { 1308s # /* GObject properties for D-Bus properties: */ 1308s # /** 1308s # * GoodTypes:good-property-type: 1308s # * 1308s # * Represents the D-Bus property "GoodPropertyType". 1308s # * 1308s # * 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. 1308s # */ 1308s # g_object_interface_install_property (iface, 1308s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1308s # } 1308s # 1308s # /** 1308s # * good_types_get_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets the value of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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. 1308s # * 1308s # * 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. 1308s # */ 1308s # GVariant * 1308s # good_types_get_good_property_type (GoodTypes *object) 1308s # { 1308s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1308s # 1308s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1308s # } 1308s # 1308s # /** 1308s # * good_types_dup_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * 1308s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1308s # * 1308s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1308s # * 1308s # * 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(). 1308s # */ 1308s # GVariant * 1308s # good_types_dup_good_property_type (GoodTypes *object) 1308s # { 1308s # GVariant *value; 1308s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1308s # return value; 1308s # } 1308s # 1308s # /** 1308s # * good_types_set_good_property_type: (skip) 1308s # * @object: A GoodTypes. 1308s # * @value: The value to set. 1308s # * 1308s # * Sets the "GoodPropertyType" D-Bus property to @value. 1308s # * 1308s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1308s # */ 1308s # void 1308s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1308s # { 1308s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesProxy: 1308s # * 1308s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesProxyClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesProxy. 1308s # */ 1308s # 1308s # struct _GoodTypesProxyPrivate 1308s # { 1308s # GData *qdata; 1308s # }; 1308s # 1308s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_ADD_PRIVATE (GoodTypesProxy) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_proxy_finalize (GObject *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # g_datalist_clear (&proxy->priv->qdata); 1308s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1308s # if (info->use_gvariant) 1308s # { 1308s # g_value_set_variant (value, variant); 1308s # } 1308s # else 1308s # { 1308s # if (variant != NULL) 1308s # g_dbus_gvariant_to_gvalue (variant, value); 1308s # } 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1308s # GAsyncResult *res, 1308s # gpointer user_data) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info = user_data; 1308s # GError *error; 1308s # GVariant *_ret; 1308s # error = NULL; 1308s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1308s # if (!_ret) 1308s # { 1308s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1308s # info->parent_struct.name, 1308s # error->message, g_quark_to_string (error->domain), error->code); 1308s # g_error_free (error); 1308s # } 1308s # else 1308s # { 1308s # g_variant_unref (_ret); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *variant; 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1308s # "org.freedesktop.DBus.Properties.Set", 1308s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1308s # g_variant_unref (variant); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_signal (GDBusProxy *proxy, 1308s # const gchar *sender_name G_GNUC_UNUSED, 1308s # const gchar *signal_name, 1308s # GVariant *parameters) 1308s # { 1308s # _ExtendedGDBusSignalInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # gsize n; 1308s # guint signal_id; 1308s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1308s # if (info == NULL) 1308s # return; 1308s # num_params = g_variant_n_children (parameters); 1308s # paramv = g_new0 (GValue, num_params + 1); 1308s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[0], proxy); 1308s # g_variant_iter_init (&iter, parameters); 1308s # n = 1; 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_signal_emitv (paramv, signal_id, 0, NULL); 1308s # for (n = 0; n < num_params + 1; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1308s # GVariant *changed_properties, 1308s # const gchar *const *invalidated_properties) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1308s # guint n; 1308s # const gchar *key; 1308s # GVariantIter *iter; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # g_variant_get (changed_properties, "a{sv}", &iter); 1308s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1308s # g_datalist_remove_data (&proxy->priv->qdata, key); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # g_variant_iter_free (iter); 1308s # for (n = 0; invalidated_properties[n] != NULL; n++) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1308s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_proxy_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1308s # GVariant *variant; 1308s # GVariant *value = NULL; 1308s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1308s # value = variant; 1308s # if (variant != NULL) 1308s # g_variant_unref (variant); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_init (GoodTypesProxy *proxy) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1308s # #else 1308s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1308s # #endif 1308s # 1308s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusProxyClass *proxy_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_proxy_finalize; 1308s # gobject_class->get_property = good_types_proxy_get_property; 1308s # gobject_class->set_property = good_types_proxy_set_property; 1308s # 1308s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1308s # proxy_class->g_signal = good_types_proxy_g_signal; 1308s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_proxy_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_sync: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_sync ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1308s # * 1308s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # good_types_proxy_new_for_bus ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * good_types_proxy_new_for_bus_sync: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # GoodTypes * 1308s # good_types_proxy_new_for_bus_sync ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return GOOD_TYPES (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * GoodTypesSkeleton: 1308s # * 1308s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * GoodTypesSkeletonClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for GoodTypesSkeleton. 1308s # */ 1308s # 1308s # struct _GoodTypesSkeletonPrivate 1308s # { 1308s # GValue *properties; 1308s # GList *changed_properties; 1308s # GSource *changed_properties_idle_source; 1308s # GMainContext *context; 1308s # GMutex lock; 1308s # }; 1308s # 1308s # static void 1308s # _good_types_skeleton_handle_method_call ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name, 1308s # const gchar *method_name, 1308s # GVariant *parameters, 1308s # GDBusMethodInvocation *invocation, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # _ExtendedGDBusMethodInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # guint num_extra; 1308s # gsize n; 1308s # guint signal_id; 1308s # GValue return_value = G_VALUE_INIT; 1308s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1308s # g_assert (info != NULL); 1308s # num_params = g_variant_n_children (parameters); 1308s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1308s # n = 0; 1308s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1308s # g_value_set_object (¶mv[n++], skeleton); 1308s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1308s # g_value_set_object (¶mv[n++], invocation); 1308s # if (info->pass_fdlist) 1308s # { 1308s # #ifdef G_OS_UNIX 1308s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1308s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1308s # #else 1308s # g_assert_not_reached (); 1308s # #endif 1308s # } 1308s # g_variant_iter_init (&iter, parameters); 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1308s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1308s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1308s # if (!g_value_get_boolean (&return_value)) 1308s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1308s # g_value_unset (&return_value); 1308s # for (n = 0; n < num_params + num_extra; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static GVariant * 1308s # _good_types_skeleton_handle_get_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *ret; 1308s # ret = NULL; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # g_value_init (&value, pspec->value_type); 1308s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_value_unset (&value); 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_skeleton_handle_set_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GVariant *variant, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # gboolean ret; 1308s # ret = FALSE; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # if (info->use_gvariant) 1308s # g_value_set_variant (&value, variant); 1308s # else 1308s # g_dbus_gvariant_to_gvalue (variant, &value); 1308s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # g_value_unset (&value); 1308s # ret = TRUE; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1308s # { 1308s # _good_types_skeleton_handle_method_call, 1308s # _good_types_skeleton_handle_get_property, 1308s # _good_types_skeleton_handle_set_property, 1308s # {NULL} 1308s # }; 1308s # 1308s # static GDBusInterfaceInfo * 1308s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return good_types_interface_info (); 1308s # } 1308s # 1308s # static GDBusInterfaceVTable * 1308s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # 1308s # GVariantBuilder builder; 1308s # guint n; 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #else 1308s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #endif 1308s # if (_good_types_interface_info.parent_struct.properties == NULL) 1308s # goto out; 1308s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1308s # { 1308s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1308s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1308s # { 1308s # GVariant *value; 1308s # 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); 1308s # if (value != NULL) 1308s # { 1308s # g_variant_take_ref (value); 1308s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1308s # g_variant_unref (value); 1308s # } 1308s # } 1308s # } 1308s # out: 1308s # return g_variant_builder_end (&builder); 1308s # } 1308s # 1308s # static gboolean _good_types_emit_changed (gpointer user_data); 1308s # 1308s # static void 1308s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1308s # gboolean emit_changed = FALSE; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # { 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # emit_changed = TRUE; 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # 1308s # if (emit_changed) 1308s # _good_types_emit_changed (skeleton); 1308s # } 1308s # 1308s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_ADD_PRIVATE (GoodTypesSkeleton) 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # good_types_skeleton_finalize (GObject *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # guint n; 1308s # for (n = 0; n < 1; n++) 1308s # g_value_unset (&skeleton->priv->properties[n]); 1308s # g_free (skeleton->priv->properties); 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # g_main_context_unref (skeleton->priv->context); 1308s # g_mutex_clear (&skeleton->priv->lock); 1308s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_get_property (GObject *object, 1308s # guint prop_id, 1308s # GValue *value, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static gboolean 1308s # _good_types_emit_changed (gpointer user_data) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1308s # GList *l; 1308s # GVariantBuilder builder; 1308s # GVariantBuilder invalidated_builder; 1308s # guint num_changes; 1308s # 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #else 1308s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1308s # #endif 1308s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *cp = l->data; 1308s # GVariant *variant; 1308s # const GValue *cur_value; 1308s # 1308s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1308s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1308s # { 1308s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1308s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1308s # g_variant_unref (variant); 1308s # num_changes++; 1308s # } 1308s # } 1308s # if (num_changes > 0) 1308s # { 1308s # GList *connections, *ll; 1308s # GVariant *signal_variant; 1308s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1308s # &builder, &invalidated_builder)); 1308s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1308s # for (ll = connections; ll != NULL; ll = ll->next) 1308s # { 1308s # GDBusConnection *connection = ll->data; 1308s # 1308s # g_dbus_connection_emit_signal (connection, 1308s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1308s # "org.freedesktop.DBus.Properties", 1308s # "PropertiesChanged", 1308s # signal_variant, 1308s # NULL); 1308s # } 1308s # g_variant_unref (signal_variant); 1308s # g_list_free_full (connections, g_object_unref); 1308s # } 1308s # else 1308s # { 1308s # g_variant_builder_clear (&builder); 1308s # g_variant_builder_clear (&invalidated_builder); 1308s # } 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # skeleton->priv->changed_properties = NULL; 1308s # skeleton->priv->changed_properties_idle_source = NULL; 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return FALSE; 1308s # } 1308s # 1308s # static void 1308s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1308s # { 1308s # ChangedProperty *cp; 1308s # GList *l; 1308s # cp = NULL; 1308s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1308s # { 1308s # ChangedProperty *i_cp = l->data; 1308s # if (i_cp->info == info) 1308s # { 1308s # cp = i_cp; 1308s # break; 1308s # } 1308s # } 1308s # if (cp == NULL) 1308s # { 1308s # cp = g_new0 (ChangedProperty, 1); 1308s # cp->prop_id = prop_id; 1308s # cp->info = info; 1308s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1308s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1308s # g_value_copy (orig_value, &cp->orig_value); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_notify (GObject *object, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # if (skeleton->priv->changed_properties != NULL && 1308s # skeleton->priv->changed_properties_idle_source == NULL) 1308s # { 1308s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1308s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1308s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1308s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1308s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1308s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_set_property (GObject *object, 1308s # guint prop_id, 1308s # const GValue *value, 1308s # GParamSpec *pspec) 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1308s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # g_object_freeze_notify (object); 1308s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1308s # { 1308s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1308s # info->emits_changed_signal) 1308s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1308s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1308s # g_object_notify_by_pspec (object, pspec); 1308s # } 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # g_object_thaw_notify (object); 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1308s # #else 1308s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1308s # #endif 1308s # 1308s # g_mutex_init (&skeleton->priv->lock); 1308s # skeleton->priv->context = g_main_context_ref_thread_default (); 1308s # skeleton->priv->properties = g_new0 (GValue, 1); 1308s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1308s # } 1308s # 1308s # static GVariant * 1308s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1308s # { 1308s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1308s # GVariant *value; 1308s # g_mutex_lock (&skeleton->priv->lock); 1308s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1308s # g_mutex_unlock (&skeleton->priv->lock); 1308s # return value; 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusInterfaceSkeletonClass *skeleton_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = good_types_skeleton_finalize; 1308s # gobject_class->get_property = good_types_skeleton_get_property; 1308s # gobject_class->set_property = good_types_skeleton_set_property; 1308s # gobject_class->notify = good_types_skeleton_notify; 1308s # 1308s # 1308s # good_types_override_properties (gobject_class, 1); 1308s # 1308s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1308s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1308s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1308s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1308s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1308s # { 1308s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1308s # } 1308s # 1308s # /** 1308s # * good_types_skeleton_new: 1308s # * 1308s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1308s # * 1308s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1308s # */ 1308s # GoodTypes * 1308s # good_types_skeleton_new (void) 1308s # { 1308s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1308s # } 1308s # Error: 1308s ok 3 __main__.TestCodegen.test_empty_interface_body 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmp11xis3_5 1308s # /tmp/tmp11xis3_5/tmpa0vdto1g.xml: 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp11xis3_5/tmpa0vdto1g.xml', '--output', '-', '--body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # #ifdef G_OS_UNIX 1308s # # include 1308s # #endif 1308s # 1308s # #ifdef G_ENABLE_DEBUG 1308s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1308s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1308s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1308s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1308s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1308s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1308s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1308s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1308s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1308s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1308s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1308s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1308s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1308s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1308s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1308s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1308s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1308s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1308s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1308s # #else /* !G_ENABLE_DEBUG */ 1308s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1308s # * Do not access GValues directly in your code. Instead, use the 1308s # * g_value_get_*() functions 1308s # */ 1308s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1308s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1308s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1308s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1308s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1308s # #endif /* !G_ENABLE_DEBUG */ 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusArgInfo parent_struct; 1308s # gboolean use_gvariant; 1308s # } _ExtendedGDBusArgInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusMethodInfo parent_struct; 1308s # const gchar *signal_name; 1308s # gboolean pass_fdlist; 1308s # } _ExtendedGDBusMethodInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusSignalInfo parent_struct; 1308s # const gchar *signal_name; 1308s # } _ExtendedGDBusSignalInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusPropertyInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # guint use_gvariant : 1; 1308s # guint emits_changed_signal : 1; 1308s # } _ExtendedGDBusPropertyInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusInterfaceInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # } _ExtendedGDBusInterfaceInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # guint prop_id; 1308s # GValue orig_value; /* the value before the change */ 1308s # } ChangedProperty; 1308s # 1308s # static void 1308s # _changed_property_free (ChangedProperty *data) 1308s # { 1308s # g_value_unset (&data->orig_value); 1308s # g_free (data); 1308s # } 1308s # 1308s # static gboolean 1308s # _g_strv_equal0 (gchar **a, gchar **b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # guint n; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # if (g_strv_length (a) != g_strv_length (b)) 1308s # goto out; 1308s # for (n = 0; a[n] != NULL; n++) 1308s # if (g_strcmp0 (a[n], b[n]) != 0) 1308s # goto out; 1308s # ret = TRUE; 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _g_variant_equal0 (GVariant *a, GVariant *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # ret = g_variant_equal (a, b); 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # G_GNUC_UNUSED static gboolean 1308s # _g_value_equal (const GValue *a, const GValue *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1308s # switch (G_VALUE_TYPE (a)) 1308s # { 1308s # case G_TYPE_BOOLEAN: 1308s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1308s # break; 1308s # case G_TYPE_UCHAR: 1308s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1308s # break; 1308s # case G_TYPE_INT: 1308s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1308s # break; 1308s # case G_TYPE_UINT: 1308s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1308s # break; 1308s # case G_TYPE_INT64: 1308s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1308s # break; 1308s # case G_TYPE_UINT64: 1308s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1308s # break; 1308s # case G_TYPE_DOUBLE: 1308s # { 1308s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1308s # gdouble da = g_value_get_double (a); 1308s # gdouble db = g_value_get_double (b); 1308s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1308s # } 1308s # break; 1308s # case G_TYPE_STRING: 1308s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1308s # break; 1308s # case G_TYPE_VARIANT: 1308s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1308s # break; 1308s # default: 1308s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1308s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1308s # else 1308s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1308s # break; 1308s # } 1308s # return ret; 1308s # } 1308s # Error: 1308s ok 4 __main__.TestCodegen.test_empty_interface_header 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmpyky4eosw 1308s # /tmp/tmpyky4eosw/tmpb4uuu0zi.xml: 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyky4eosw/tmpb4uuu0zi.xml', '--output', '-', '--header'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifndef __STDOUT__ 1308s # #define __STDOUT__ 1308s # 1308s # #include 1308s # 1308s # G_BEGIN_DECLS 1308s # 1308s # 1308s # G_END_DECLS 1308s # 1308s # #endif /* __STDOUT__ */ 1308s # Error: 1308s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmp30nf3qqg 1308s # /tmp/tmp30nf3qqg/tmpvcddh_8i.xml: 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp30nf3qqg/tmpvcddh_8i.xml', '--output', '-', '--interface-info-body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # Error: 1308s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmpu0g719yf 1308s # /tmp/tmpu0g719yf/tmp3fw5s6op.xml: 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu0g719yf/tmp3fw5s6op.xml', '--output', '-', '--interface-info-header'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifndef __STDOUT__ 1308s # #define __STDOUT__ 1308s # 1308s # #include 1308s # 1308s # G_BEGIN_DECLS 1308s # 1308s # 1308s # G_END_DECLS 1308s # 1308s # #endif /* __STDOUT__ */ 1308s # Error: 1308s ok 7 __main__.TestCodegen.test_generate_docbook 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmpv38009yb 1308s # /tmp/tmpv38009yb/tmp2fzig58a.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv38009yb/tmp2fzig58a.xml', '--generate-docbook', 'test'] 1308s # Return code: 0 1308s # Output: 1308s # 1308s # Error: 1308s ok 8 __main__.TestCodegen.test_generate_md 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmp_5a8hn06 1308s # /tmp/tmp_5a8hn06/tmpp7bl_3vk.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_5a8hn06/tmpp7bl_3vk.xml', '--generate-md', 'test'] 1308s # Return code: 0 1308s # Output: 1308s # 1308s # Error: 1308s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1308s # gdbus-codegen: /usr/bin/gdbus-codegen 1308s # tmpdir: /tmp/tmpaxbmkmmy 1308s # /tmp/tmpaxbmkmmy/tmpqyatgwe5.xml: 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # 1308s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpaxbmkmmy/tmpqyatgwe5.xml', '--output', '-', '--body'] 1308s # Return code: 0 1308s # Output: 1308s # /* 1308s # * This file is generated by gdbus-codegen, do not modify it. 1308s # * 1308s # * The license of this code is the same as for the D-Bus interface description 1308s # * it was derived from. Note that it links to GLib, so must comply with the 1308s # * LGPL linking clauses. 1308s # */ 1308s # 1308s # #ifdef HAVE_CONFIG_H 1308s # # include "config.h" 1308s # #endif 1308s # 1308s # #include 1308s # #ifdef G_OS_UNIX 1308s # # include 1308s # #endif 1308s # 1308s # #ifdef G_ENABLE_DEBUG 1308s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1308s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1308s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1308s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1308s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1308s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1308s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1308s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1308s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1308s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1308s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1308s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1308s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1308s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1308s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1308s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1308s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1308s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1308s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1308s # #else /* !G_ENABLE_DEBUG */ 1308s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1308s # * Do not access GValues directly in your code. Instead, use the 1308s # * g_value_get_*() functions 1308s # */ 1308s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1308s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1308s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1308s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1308s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1308s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1308s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1308s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1308s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1308s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1308s # #endif /* !G_ENABLE_DEBUG */ 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusArgInfo parent_struct; 1308s # gboolean use_gvariant; 1308s # } _ExtendedGDBusArgInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusMethodInfo parent_struct; 1308s # const gchar *signal_name; 1308s # gboolean pass_fdlist; 1308s # } _ExtendedGDBusMethodInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusSignalInfo parent_struct; 1308s # const gchar *signal_name; 1308s # } _ExtendedGDBusSignalInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusPropertyInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # guint use_gvariant : 1; 1308s # guint emits_changed_signal : 1; 1308s # } _ExtendedGDBusPropertyInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # GDBusInterfaceInfo parent_struct; 1308s # const gchar *hyphen_name; 1308s # } _ExtendedGDBusInterfaceInfo; 1308s # 1308s # typedef struct 1308s # { 1308s # const _ExtendedGDBusPropertyInfo *info; 1308s # guint prop_id; 1308s # GValue orig_value; /* the value before the change */ 1308s # } ChangedProperty; 1308s # 1308s # static void 1308s # _changed_property_free (ChangedProperty *data) 1308s # { 1308s # g_value_unset (&data->orig_value); 1308s # g_free (data); 1308s # } 1308s # 1308s # static gboolean 1308s # _g_strv_equal0 (gchar **a, gchar **b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # guint n; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # if (g_strv_length (a) != g_strv_length (b)) 1308s # goto out; 1308s # for (n = 0; a[n] != NULL; n++) 1308s # if (g_strcmp0 (a[n], b[n]) != 0) 1308s # goto out; 1308s # ret = TRUE; 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _g_variant_equal0 (GVariant *a, GVariant *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # if (a == NULL && b == NULL) 1308s # { 1308s # ret = TRUE; 1308s # goto out; 1308s # } 1308s # if (a == NULL || b == NULL) 1308s # goto out; 1308s # ret = g_variant_equal (a, b); 1308s # out: 1308s # return ret; 1308s # } 1308s # 1308s # G_GNUC_UNUSED static gboolean 1308s # _g_value_equal (const GValue *a, const GValue *b) 1308s # { 1308s # gboolean ret = FALSE; 1308s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1308s # switch (G_VALUE_TYPE (a)) 1308s # { 1308s # case G_TYPE_BOOLEAN: 1308s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1308s # break; 1308s # case G_TYPE_UCHAR: 1308s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1308s # break; 1308s # case G_TYPE_INT: 1308s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1308s # break; 1308s # case G_TYPE_UINT: 1308s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1308s # break; 1308s # case G_TYPE_INT64: 1308s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1308s # break; 1308s # case G_TYPE_UINT64: 1308s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1308s # break; 1308s # case G_TYPE_DOUBLE: 1308s # { 1308s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1308s # gdouble da = g_value_get_double (a); 1308s # gdouble db = g_value_get_double (b); 1308s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1308s # } 1308s # break; 1308s # case G_TYPE_STRING: 1308s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1308s # break; 1308s # case G_TYPE_VARIANT: 1308s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1308s # break; 1308s # default: 1308s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1308s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1308s # else 1308s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1308s # break; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static void 1308s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1308s # GClosure *closure, 1308s # GValue *return_value, 1308s # unsigned int n_param_values, 1308s # const GValue *param_values, 1308s # void *invocation_hint G_GNUC_UNUSED, 1308s # void *marshal_data) 1308s # { 1308s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1308s # (void *data1, 1308s # GDBusMethodInvocation *arg_method_invocation, 1308s # void *data2); 1308s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1308s # GCClosure *cc = (GCClosure*) closure; 1308s # void *data1, *data2; 1308s # gboolean v_return; 1308s # 1308s # g_return_if_fail (return_value != NULL); 1308s # g_return_if_fail (n_param_values == 2); 1308s # 1308s # if (G_CCLOSURE_SWAP_DATA (closure)) 1308s # { 1308s # data1 = closure->data; 1308s # data2 = g_value_peek_pointer (param_values + 0); 1308s # } 1308s # else 1308s # { 1308s # data1 = g_value_peek_pointer (param_values + 0); 1308s # data2 = closure->data; 1308s # } 1308s # 1308s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1308s # (marshal_data ? marshal_data : cc->callback); 1308s # 1308s # v_return = 1308s # callback (data1, 1308s # g_marshal_value_peek_object (param_values + 1), 1308s # data2); 1308s # 1308s # g_value_set_boolean (return_value, v_return); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ 1308s # * Code for interface org.project.CallableIface 1308s # * ------------------------------------------------------------------------ 1308s # */ 1308s # 1308s # /** 1308s # * SECTION:OrgProjectCallableIface 1308s # * @title: OrgProjectCallableIface 1308s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1308s # * 1308s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1308s # */ 1308s # 1308s # /* ---- Introspection data for org.project.CallableIface ---- */ 1308s # 1308s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "SimpleMethod", 1308s # NULL, 1308s # NULL, 1308s # NULL 1308s # }, 1308s # "handle-simple-method", 1308s # FALSE 1308s # }; 1308s # 1308s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1308s # { 1308s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1308s # NULL 1308s # }; 1308s # 1308s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "org.project.CallableIface", 1308s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1308s # NULL, 1308s # NULL, 1308s # NULL 1308s # }, 1308s # "org-project-callable-iface", 1308s # }; 1308s # 1308s # 1308s # /** 1308s # * org_project_callable_iface_interface_info: 1308s # * 1308s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1308s # * 1308s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1308s # */ 1308s # GDBusInterfaceInfo * 1308s # org_project_callable_iface_interface_info (void) 1308s # { 1308s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_override_properties: 1308s # * @klass: The class structure for a #GObject derived class. 1308s # * @property_id_begin: The property id to assign to the first overridden property. 1308s # * 1308s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1308s # * The properties are overridden in the order they are defined. 1308s # * 1308s # * Returns: The last property id. 1308s # */ 1308s # guint 1308s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1308s # { 1308s # return property_id_begin - 1; 1308s # } 1308s # 1308s # 1308s # inline static void 1308s # org_project_callable_iface_method_marshal_simple_method ( 1308s # GClosure *closure, 1308s # GValue *return_value, 1308s # unsigned int n_param_values, 1308s # const GValue *param_values, 1308s # void *invocation_hint, 1308s # void *marshal_data) 1308s # { 1308s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1308s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1308s # } 1308s # 1308s # 1308s # /** 1308s # * OrgProjectCallableIface: 1308s # * 1308s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectCallableIfaceIface: 1308s # * @parent_iface: The parent interface. 1308s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1308s # * 1308s # * Virtual table for the D-Bus interface org.project.CallableIface. 1308s # */ 1308s # 1308s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1308s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1308s # 1308s # static void 1308s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1308s # { 1308s # /* GObject signals for incoming D-Bus method calls: */ 1308s # /** 1308s # * OrgProjectCallableIface::handle-simple-method: 1308s # * @object: A #OrgProjectCallableIface. 1308s # * @invocation: A #GDBusMethodInvocation. 1308s # * 1308s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1308s # * 1308s # * 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. 1308s # * 1308s # * 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. 1308s # */ 1308s # g_signal_new ("handle-simple-method", 1308s # G_TYPE_FROM_INTERFACE (iface), 1308s # G_SIGNAL_RUN_LAST, 1308s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1308s # g_signal_accumulator_true_handled, 1308s # NULL, 1308s # org_project_callable_iface_method_marshal_simple_method, 1308s # G_TYPE_BOOLEAN, 1308s # 1, 1308s # G_TYPE_DBUS_METHOD_INVOCATION); 1308s # 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_call_simple_method: 1308s # * @proxy: A #OrgProjectCallableIfaceProxy. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1308s # */ 1308s # void 1308s # org_project_callable_iface_call_simple_method ( 1308s # OrgProjectCallableIface *proxy, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1308s # "SimpleMethod", 1308s # g_variant_new ("()"), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # cancellable, 1308s # callback, 1308s # user_data); 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_call_simple_method_finish: 1308s # * @proxy: A #OrgProjectCallableIfaceProxy. 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1308s # * @error: Return location for error or %NULL. 1308s # * 1308s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1308s # * 1308s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1308s # */ 1308s # gboolean 1308s # org_project_callable_iface_call_simple_method_finish ( 1308s # OrgProjectCallableIface *proxy, 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GVariant *_ret; 1308s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1308s # if (_ret == NULL) 1308s # goto _out; 1308s # g_variant_get (_ret, 1308s # "()"); 1308s # g_variant_unref (_ret); 1308s # _out: 1308s # return _ret != NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_call_simple_method_sync: 1308s # * @proxy: A #OrgProjectCallableIfaceProxy. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL. 1308s # * 1308s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1308s # * 1308s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1308s # */ 1308s # gboolean 1308s # org_project_callable_iface_call_simple_method_sync ( 1308s # OrgProjectCallableIface *proxy, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GVariant *_ret; 1308s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1308s # "SimpleMethod", 1308s # g_variant_new ("()"), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # cancellable, 1308s # error); 1308s # if (_ret == NULL) 1308s # goto _out; 1308s # g_variant_get (_ret, 1308s # "()"); 1308s # g_variant_unref (_ret); 1308s # _out: 1308s # return _ret != NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_complete_simple_method: 1308s # * @object: A #OrgProjectCallableIface. 1308s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1308s # * 1308s # * 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. 1308s # * 1308s # * This method will free @invocation, you cannot use it afterwards. 1308s # */ 1308s # void 1308s # org_project_callable_iface_complete_simple_method ( 1308s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1308s # GDBusMethodInvocation *invocation) 1308s # { 1308s # g_dbus_method_invocation_return_value (invocation, 1308s # g_variant_new ("()")); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * OrgProjectCallableIfaceProxy: 1308s # * 1308s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectCallableIfaceProxyClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for #OrgProjectCallableIfaceProxy. 1308s # */ 1308s # 1308s # struct _OrgProjectCallableIfaceProxyPrivate 1308s # { 1308s # GData *qdata; 1308s # }; 1308s # 1308s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1308s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # org_project_callable_iface_proxy_finalize (GObject *object) 1308s # { 1308s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1308s # g_datalist_clear (&proxy->priv->qdata); 1308s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1308s # guint prop_id G_GNUC_UNUSED, 1308s # GValue *value G_GNUC_UNUSED, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1308s # guint prop_id G_GNUC_UNUSED, 1308s # const GValue *value G_GNUC_UNUSED, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1308s # const gchar *sender_name G_GNUC_UNUSED, 1308s # const gchar *signal_name, 1308s # GVariant *parameters) 1308s # { 1308s # _ExtendedGDBusSignalInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # gsize n; 1308s # guint signal_id; 1308s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1308s # if (info == NULL) 1308s # return; 1308s # num_params = g_variant_n_children (parameters); 1308s # paramv = g_new0 (GValue, num_params + 1); 1308s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1308s # g_value_set_object (¶mv[0], proxy); 1308s # g_variant_iter_init (&iter, parameters); 1308s # n = 1; 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1308s # g_signal_emitv (paramv, signal_id, 0, NULL); 1308s # for (n = 0; n < num_params + 1; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1308s # GVariant *changed_properties, 1308s # const gchar *const *invalidated_properties) 1308s # { 1308s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1308s # guint n; 1308s # const gchar *key; 1308s # GVariantIter *iter; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # g_variant_get (changed_properties, "a{sv}", &iter); 1308s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1308s # g_datalist_remove_data (&proxy->priv->qdata, key); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # g_variant_iter_free (iter); 1308s # for (n = 0; invalidated_properties[n] != NULL; n++) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1308s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1308s # #else 1308s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1308s # #endif 1308s # 1308s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusProxyClass *proxy_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1308s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1308s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1308s # 1308s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1308s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1308s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # org_project_callable_iface_proxy_new ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectCallableIface * 1308s # org_project_callable_iface_proxy_new_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new_sync: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectCallableIface * 1308s # org_project_callable_iface_proxy_new_sync ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new_for_bus: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # org_project_callable_iface_proxy_new_for_bus ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new_for_bus_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectCallableIface * 1308s # org_project_callable_iface_proxy_new_for_bus_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_proxy_new_for_bus_sync: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectCallableIface * 1308s # org_project_callable_iface_proxy_new_for_bus_sync ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * OrgProjectCallableIfaceSkeleton: 1308s # * 1308s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectCallableIfaceSkeletonClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1308s # */ 1308s # 1308s # struct _OrgProjectCallableIfaceSkeletonPrivate 1308s # { 1308s # GValue *properties; 1308s # GList *changed_properties; 1308s # GSource *changed_properties_idle_source; 1308s # GMainContext *context; 1308s # GMutex lock; 1308s # }; 1308s # 1308s # static void 1308s # _org_project_callable_iface_skeleton_handle_method_call ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name, 1308s # const gchar *method_name, 1308s # GVariant *parameters, 1308s # GDBusMethodInvocation *invocation, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1308s # _ExtendedGDBusMethodInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # guint num_extra; 1308s # gsize n; 1308s # guint signal_id; 1308s # GValue return_value = G_VALUE_INIT; 1308s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1308s # g_assert (info != NULL); 1308s # num_params = g_variant_n_children (parameters); 1308s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1308s # n = 0; 1308s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1308s # g_value_set_object (¶mv[n++], skeleton); 1308s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1308s # g_value_set_object (¶mv[n++], invocation); 1308s # if (info->pass_fdlist) 1308s # { 1308s # #ifdef G_OS_UNIX 1308s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1308s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1308s # #else 1308s # g_assert_not_reached (); 1308s # #endif 1308s # } 1308s # g_variant_iter_init (&iter, parameters); 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1308s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1308s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1308s # if (!g_value_get_boolean (&return_value)) 1308s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1308s # g_value_unset (&return_value); 1308s # for (n = 0; n < num_params + num_extra; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static GVariant * 1308s # _org_project_callable_iface_skeleton_handle_get_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *ret; 1308s # ret = NULL; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # g_value_init (&value, pspec->value_type); 1308s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_value_unset (&value); 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _org_project_callable_iface_skeleton_handle_set_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GVariant *variant, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # gboolean ret; 1308s # ret = FALSE; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # if (info->use_gvariant) 1308s # g_value_set_variant (&value, variant); 1308s # else 1308s # g_dbus_gvariant_to_gvalue (variant, &value); 1308s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # g_value_unset (&value); 1308s # ret = TRUE; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1308s # { 1308s # _org_project_callable_iface_skeleton_handle_method_call, 1308s # _org_project_callable_iface_skeleton_handle_get_property, 1308s # _org_project_callable_iface_skeleton_handle_set_property, 1308s # {NULL} 1308s # }; 1308s # 1308s # static GDBusInterfaceInfo * 1308s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return org_project_callable_iface_interface_info (); 1308s # } 1308s # 1308s # static GDBusInterfaceVTable * 1308s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1308s # } 1308s # 1308s # static GVariant * 1308s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1308s # 1308s # GVariantBuilder builder; 1308s # guint n; 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #else 1308s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #endif 1308s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1308s # goto out; 1308s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1308s # { 1308s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1308s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1308s # { 1308s # GVariant *value; 1308s # 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); 1308s # if (value != NULL) 1308s # { 1308s # g_variant_take_ref (value); 1308s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1308s # g_variant_unref (value); 1308s # } 1308s # } 1308s # } 1308s # out: 1308s # return g_variant_builder_end (&builder); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # org_project_callable_iface_skeleton_finalize (GObject *object) 1308s # { 1308s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # g_main_context_unref (skeleton->priv->context); 1308s # g_mutex_clear (&skeleton->priv->lock); 1308s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1308s # #else 1308s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1308s # #endif 1308s # 1308s # g_mutex_init (&skeleton->priv->lock); 1308s # skeleton->priv->context = g_main_context_ref_thread_default (); 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusInterfaceSkeletonClass *skeleton_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1308s # 1308s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1308s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1308s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1308s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1308s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # /** 1308s # * org_project_callable_iface_skeleton_new: 1308s # * 1308s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1308s # */ 1308s # OrgProjectCallableIface * 1308s # org_project_callable_iface_skeleton_new (void) 1308s # { 1308s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ 1308s # * Code for interface org.project.OtherCallableIface 1308s # * ------------------------------------------------------------------------ 1308s # */ 1308s # 1308s # /** 1308s # * SECTION:OrgProjectOtherCallableIface 1308s # * @title: OrgProjectOtherCallableIface 1308s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1308s # * 1308s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1308s # */ 1308s # 1308s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1308s # 1308s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "SimpleMethod", 1308s # NULL, 1308s # NULL, 1308s # NULL 1308s # }, 1308s # "handle-simple-method", 1308s # FALSE 1308s # }; 1308s # 1308s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1308s # { 1308s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1308s # NULL 1308s # }; 1308s # 1308s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1308s # { 1308s # { 1308s # -1, 1308s # (gchar *) "org.project.OtherCallableIface", 1308s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1308s # NULL, 1308s # NULL, 1308s # NULL 1308s # }, 1308s # "org-project-other-callable-iface", 1308s # }; 1308s # 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_interface_info: 1308s # * 1308s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1308s # * 1308s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1308s # */ 1308s # GDBusInterfaceInfo * 1308s # org_project_other_callable_iface_interface_info (void) 1308s # { 1308s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_override_properties: 1308s # * @klass: The class structure for a #GObject derived class. 1308s # * @property_id_begin: The property id to assign to the first overridden property. 1308s # * 1308s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1308s # * The properties are overridden in the order they are defined. 1308s # * 1308s # * Returns: The last property id. 1308s # */ 1308s # guint 1308s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1308s # { 1308s # return property_id_begin - 1; 1308s # } 1308s # 1308s # 1308s # inline static void 1308s # org_project_other_callable_iface_method_marshal_simple_method ( 1308s # GClosure *closure, 1308s # GValue *return_value, 1308s # unsigned int n_param_values, 1308s # const GValue *param_values, 1308s # void *invocation_hint, 1308s # void *marshal_data) 1308s # { 1308s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1308s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1308s # } 1308s # 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIface: 1308s # * 1308s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIfaceIface: 1308s # * @parent_iface: The parent interface. 1308s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1308s # * 1308s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1308s # */ 1308s # 1308s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1308s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1308s # 1308s # static void 1308s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1308s # { 1308s # /* GObject signals for incoming D-Bus method calls: */ 1308s # /** 1308s # * OrgProjectOtherCallableIface::handle-simple-method: 1308s # * @object: A #OrgProjectOtherCallableIface. 1308s # * @invocation: A #GDBusMethodInvocation. 1308s # * 1308s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1308s # * 1308s # * 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. 1308s # * 1308s # * 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. 1308s # */ 1308s # g_signal_new ("handle-simple-method", 1308s # G_TYPE_FROM_INTERFACE (iface), 1308s # G_SIGNAL_RUN_LAST, 1308s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1308s # g_signal_accumulator_true_handled, 1308s # NULL, 1308s # org_project_other_callable_iface_method_marshal_simple_method, 1308s # G_TYPE_BOOLEAN, 1308s # 1, 1308s # G_TYPE_DBUS_METHOD_INVOCATION); 1308s # 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_call_simple_method: 1308s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1308s # */ 1308s # void 1308s # org_project_other_callable_iface_call_simple_method ( 1308s # OrgProjectOtherCallableIface *proxy, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1308s # "SimpleMethod", 1308s # g_variant_new ("()"), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # cancellable, 1308s # callback, 1308s # user_data); 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_call_simple_method_finish: 1308s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1308s # * @error: Return location for error or %NULL. 1308s # * 1308s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1308s # * 1308s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1308s # */ 1308s # gboolean 1308s # org_project_other_callable_iface_call_simple_method_finish ( 1308s # OrgProjectOtherCallableIface *proxy, 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GVariant *_ret; 1308s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1308s # if (_ret == NULL) 1308s # goto _out; 1308s # g_variant_get (_ret, 1308s # "()"); 1308s # g_variant_unref (_ret); 1308s # _out: 1308s # return _ret != NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_call_simple_method_sync: 1308s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL. 1308s # * 1308s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1308s # * 1308s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1308s # */ 1308s # gboolean 1308s # org_project_other_callable_iface_call_simple_method_sync ( 1308s # OrgProjectOtherCallableIface *proxy, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GVariant *_ret; 1308s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1308s # "SimpleMethod", 1308s # g_variant_new ("()"), 1308s # G_DBUS_CALL_FLAGS_NONE, 1308s # -1, 1308s # cancellable, 1308s # error); 1308s # if (_ret == NULL) 1308s # goto _out; 1308s # g_variant_get (_ret, 1308s # "()"); 1308s # g_variant_unref (_ret); 1308s # _out: 1308s # return _ret != NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_complete_simple_method: 1308s # * @object: A #OrgProjectOtherCallableIface. 1308s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1308s # * 1308s # * 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. 1308s # * 1308s # * This method will free @invocation, you cannot use it afterwards. 1308s # */ 1308s # void 1308s # org_project_other_callable_iface_complete_simple_method ( 1308s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1308s # GDBusMethodInvocation *invocation) 1308s # { 1308s # g_dbus_method_invocation_return_value (invocation, 1308s # g_variant_new ("()")); 1308s # } 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIfaceProxy: 1308s # * 1308s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIfaceProxyClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1308s # */ 1308s # 1308s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1308s # { 1308s # GData *qdata; 1308s # }; 1308s # 1308s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1308s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1308s # { 1308s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1308s # g_datalist_clear (&proxy->priv->qdata); 1308s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1308s # guint prop_id G_GNUC_UNUSED, 1308s # GValue *value G_GNUC_UNUSED, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1308s # guint prop_id G_GNUC_UNUSED, 1308s # const GValue *value G_GNUC_UNUSED, 1308s # GParamSpec *pspec G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1308s # const gchar *sender_name G_GNUC_UNUSED, 1308s # const gchar *signal_name, 1308s # GVariant *parameters) 1308s # { 1308s # _ExtendedGDBusSignalInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # gsize n; 1308s # guint signal_id; 1308s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1308s # if (info == NULL) 1308s # return; 1308s # num_params = g_variant_n_children (parameters); 1308s # paramv = g_new0 (GValue, num_params + 1); 1308s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1308s # g_value_set_object (¶mv[0], proxy); 1308s # g_variant_iter_init (&iter, parameters); 1308s # n = 1; 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1308s # g_signal_emitv (paramv, signal_id, 0, NULL); 1308s # for (n = 0; n < num_params + 1; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1308s # GVariant *changed_properties, 1308s # const gchar *const *invalidated_properties) 1308s # { 1308s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1308s # guint n; 1308s # const gchar *key; 1308s # GVariantIter *iter; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # g_variant_get (changed_properties, "a{sv}", &iter); 1308s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1308s # g_datalist_remove_data (&proxy->priv->qdata, key); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # g_variant_iter_free (iter); 1308s # for (n = 0; invalidated_properties[n] != NULL; n++) 1308s # { 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1308s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1308s # if (info != NULL) 1308s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1308s # } 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1308s # #else 1308s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1308s # #endif 1308s # 1308s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusProxyClass *proxy_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1308s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1308s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1308s # 1308s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1308s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1308s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # org_project_other_callable_iface_proxy_new ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectOtherCallableIface * 1308s # org_project_other_callable_iface_proxy_new_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new_sync: 1308s # * @connection: A #GDBusConnection. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectOtherCallableIface * 1308s # org_project_other_callable_iface_proxy_new_sync ( 1308s # GDBusConnection *connection, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new_for_bus: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1308s # * @user_data: User data to pass to @callback. 1308s # * 1308s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1308s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1308s # * 1308s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1308s # */ 1308s # void 1308s # org_project_other_callable_iface_proxy_new_for_bus ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GAsyncReadyCallback callback, 1308s # gpointer user_data) 1308s # { 1308s # 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); 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1308s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectOtherCallableIface * 1308s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1308s # GAsyncResult *res, 1308s # GError **error) 1308s # { 1308s # GObject *ret; 1308s # GObject *source_object; 1308s # source_object = g_async_result_get_source_object (res); 1308s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1308s # g_object_unref (source_object); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1308s # * @bus_type: A #GBusType. 1308s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1308s # * @name: A bus name (well-known or unique). 1308s # * @object_path: An object path. 1308s # * @cancellable: (nullable): A #GCancellable or %NULL. 1308s # * @error: Return location for error or %NULL 1308s # * 1308s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1308s # * 1308s # * The calling thread is blocked until a reply is received. 1308s # * 1308s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1308s # */ 1308s # OrgProjectOtherCallableIface * 1308s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1308s # GBusType bus_type, 1308s # GDBusProxyFlags flags, 1308s # const gchar *name, 1308s # const gchar *object_path, 1308s # GCancellable *cancellable, 1308s # GError **error) 1308s # { 1308s # GInitable *ret; 1308s # 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); 1308s # if (ret != NULL) 1308s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1308s # else 1308s # return NULL; 1308s # } 1308s # 1308s # 1308s # /* ------------------------------------------------------------------------ */ 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIfaceSkeleton: 1308s # * 1308s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1308s # */ 1308s # 1308s # /** 1308s # * OrgProjectOtherCallableIfaceSkeletonClass: 1308s # * @parent_class: The parent class. 1308s # * 1308s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1308s # */ 1308s # 1308s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1308s # { 1308s # GValue *properties; 1308s # GList *changed_properties; 1308s # GSource *changed_properties_idle_source; 1308s # GMainContext *context; 1308s # GMutex lock; 1308s # }; 1308s # 1308s # static void 1308s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name, 1308s # const gchar *method_name, 1308s # GVariant *parameters, 1308s # GDBusMethodInvocation *invocation, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1308s # _ExtendedGDBusMethodInfo *info; 1308s # GVariantIter iter; 1308s # GVariant *child; 1308s # GValue *paramv; 1308s # gsize num_params; 1308s # guint num_extra; 1308s # gsize n; 1308s # guint signal_id; 1308s # GValue return_value = G_VALUE_INIT; 1308s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1308s # g_assert (info != NULL); 1308s # num_params = g_variant_n_children (parameters); 1308s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1308s # n = 0; 1308s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1308s # g_value_set_object (¶mv[n++], skeleton); 1308s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1308s # g_value_set_object (¶mv[n++], invocation); 1308s # if (info->pass_fdlist) 1308s # { 1308s # #ifdef G_OS_UNIX 1308s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1308s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1308s # #else 1308s # g_assert_not_reached (); 1308s # #endif 1308s # } 1308s # g_variant_iter_init (&iter, parameters); 1308s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1308s # { 1308s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1308s # if (arg_info->use_gvariant) 1308s # { 1308s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1308s # g_value_set_variant (¶mv[n], child); 1308s # n++; 1308s # } 1308s # else 1308s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1308s # g_variant_unref (child); 1308s # } 1308s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1308s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1308s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1308s # if (!g_value_get_boolean (&return_value)) 1308s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1308s # g_value_unset (&return_value); 1308s # for (n = 0; n < num_params + num_extra; n++) 1308s # g_value_unset (¶mv[n]); 1308s # g_free (paramv); 1308s # } 1308s # 1308s # static GVariant * 1308s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # GVariant *ret; 1308s # ret = NULL; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # g_value_init (&value, pspec->value_type); 1308s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1308s # g_value_unset (&value); 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static gboolean 1308s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1308s # GDBusConnection *connection G_GNUC_UNUSED, 1308s # const gchar *sender G_GNUC_UNUSED, 1308s # const gchar *object_path G_GNUC_UNUSED, 1308s # const gchar *interface_name G_GNUC_UNUSED, 1308s # const gchar *property_name, 1308s # GVariant *variant, 1308s # GError **error, 1308s # gpointer user_data) 1308s # { 1308s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1308s # GValue value = G_VALUE_INIT; 1308s # GParamSpec *pspec; 1308s # _ExtendedGDBusPropertyInfo *info; 1308s # gboolean ret; 1308s # ret = FALSE; 1308s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1308s # g_assert (info != NULL); 1308s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1308s # if (pspec == NULL) 1308s # { 1308s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1308s # } 1308s # else 1308s # { 1308s # if (info->use_gvariant) 1308s # g_value_set_variant (&value, variant); 1308s # else 1308s # g_dbus_gvariant_to_gvalue (variant, &value); 1308s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1308s # g_value_unset (&value); 1308s # ret = TRUE; 1308s # } 1308s # return ret; 1308s # } 1308s # 1308s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1308s # { 1308s # _org_project_other_callable_iface_skeleton_handle_method_call, 1308s # _org_project_other_callable_iface_skeleton_handle_get_property, 1308s # _org_project_other_callable_iface_skeleton_handle_set_property, 1308s # {NULL} 1308s # }; 1308s # 1308s # static GDBusInterfaceInfo * 1308s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return org_project_other_callable_iface_interface_info (); 1308s # } 1308s # 1308s # static GDBusInterfaceVTable * 1308s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1308s # { 1308s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1308s # } 1308s # 1308s # static GVariant * 1308s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1308s # { 1308s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1308s # 1308s # GVariantBuilder builder; 1308s # guint n; 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1308s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #else 1308s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1308s # #endif 1308s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1308s # goto out; 1308s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1308s # { 1308s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1308s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1308s # { 1308s # GVariant *value; 1308s # 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); 1308s # if (value != NULL) 1308s # { 1308s # g_variant_take_ref (value); 1308s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1308s # g_variant_unref (value); 1308s # } 1308s # } 1308s # } 1308s # out: 1308s # return g_variant_builder_end (&builder); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1308s # 1308s # #else 1308s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1308s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1308s # 1308s # #endif 1308s # static void 1308s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1308s # { 1308s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1308s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1308s # if (skeleton->priv->changed_properties_idle_source != NULL) 1308s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1308s # g_main_context_unref (skeleton->priv->context); 1308s # g_mutex_clear (&skeleton->priv->lock); 1308s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1308s # { 1308s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1308s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1308s # #else 1308s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1308s # #endif 1308s # 1308s # g_mutex_init (&skeleton->priv->lock); 1308s # skeleton->priv->context = g_main_context_ref_thread_default (); 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1308s # { 1308s # GObjectClass *gobject_class; 1308s # GDBusInterfaceSkeletonClass *skeleton_class; 1308s # 1308s # gobject_class = G_OBJECT_CLASS (klass); 1308s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1308s # 1308s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1308s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1308s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1308s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1308s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1308s # 1308s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1308s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1308s # #endif 1308s # } 1308s # 1308s # static void 1308s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1308s # { 1308s # } 1308s # 1308s # /** 1308s # * org_project_other_callable_iface_skeleton_new: 1308s # * 1308s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1308s # * 1308s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1308s # */ 1308s # OrgProjectOtherCallableIface * 1308s # org_project_other_callable_iface_skeleton_new (void) 1308s # { 1308s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1308s # } 1308s # Error: 1309s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1309s # gdbus-codegen: /usr/bin/gdbus-codegen 1309s # tmpdir: /tmp/tmpxe69t14w 1309s # /tmp/tmpxe69t14w/tmpfbhkgz_3.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpfbhkgz_3.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # gboolean arg_arg_b, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_boolean (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_b", 1309s # (gchar *) "b", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodB", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-b", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_b: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-b", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_b, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_b: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_b: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_b ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gboolean arg_arg_b, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodB", 1309s # g_variant_new ("(b)", 1309s # arg_arg_b), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_b_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_b_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_b_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_b: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_b_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gboolean arg_arg_b, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodB", 1309s # g_variant_new ("(b)", 1309s # arg_arg_b), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_b: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_b ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp3rh4argf.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp3rh4argf.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # guchar arg_arg_y, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_uchar (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_y", 1309s # (gchar *) "y", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodY", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-y", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_y: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-y", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_y, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_y: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_y: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_y ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guchar arg_arg_y, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodY", 1309s # g_variant_new ("(y)", 1309s # arg_arg_y), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_y_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_y_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_y_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_y: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_y_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guchar arg_arg_y, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodY", 1309s # g_variant_new ("(y)", 1309s # arg_arg_y), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_y: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_y ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpevqy5j3x.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpevqy5j3x.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # gint16 arg_arg_n, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_int (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_n", 1309s # (gchar *) "n", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodN", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-n", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_n: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-n", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_n, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_n: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_n: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_n ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint16 arg_arg_n, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodN", 1309s # g_variant_new ("(n)", 1309s # arg_arg_n), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_n_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_n_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_n_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_n: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_n_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint16 arg_arg_n, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodN", 1309s # g_variant_new ("(n)", 1309s # arg_arg_n), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_n: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_n ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpkeyloj1z.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpkeyloj1z.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # guint16 arg_arg_q, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_uint (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_q", 1309s # (gchar *) "q", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodQ", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-q", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_q: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-q", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_q, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_q: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_q: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_q ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint16 arg_arg_q, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodQ", 1309s # g_variant_new ("(q)", 1309s # arg_arg_q), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_q_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_q_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_q_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_q: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_q_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint16 arg_arg_q, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodQ", 1309s # g_variant_new ("(q)", 1309s # arg_arg_q), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_q: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_q ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmphxq3fvz1.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmphxq3fvz1.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # gint arg_arg_i, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_int (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_i", 1309s # (gchar *) "i", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodI", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-i", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_i: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-i", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_i, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_i: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_i: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_i ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint arg_arg_i, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodI", 1309s # g_variant_new ("(i)", 1309s # arg_arg_i), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_i_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_i_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_i_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_i: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_i_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint arg_arg_i, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodI", 1309s # g_variant_new ("(i)", 1309s # arg_arg_i), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_i: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_i ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpvjc0s5vn.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpvjc0s5vn.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # guint arg_arg_u, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_uint (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_u", 1309s # (gchar *) "u", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodU", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-u", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_u: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-u", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_u, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_u: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_u: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_u ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint arg_arg_u, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodU", 1309s # g_variant_new ("(u)", 1309s # arg_arg_u), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_u_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_u_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_u_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_u: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_u_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint arg_arg_u, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodU", 1309s # g_variant_new ("(u)", 1309s # arg_arg_u), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_u: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_u ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp4nu9tl45.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp4nu9tl45.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # gint64 arg_arg_x, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_int64 (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_x", 1309s # (gchar *) "x", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodX", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-x", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_x: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-x", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_x, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_x: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_x: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_x ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint64 arg_arg_x, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodX", 1309s # g_variant_new ("(x)", 1309s # arg_arg_x), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_x_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_x_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_x_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_x: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_x_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gint64 arg_arg_x, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodX", 1309s # g_variant_new ("(x)", 1309s # arg_arg_x), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_x: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_x ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpef06t3z6.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpef06t3z6.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # guint64 arg_arg_t, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_uint64 (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_t", 1309s # (gchar *) "t", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodT", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-t", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_t: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-t", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_t, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_t: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_t: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_t ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint64 arg_arg_t, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodT", 1309s # g_variant_new ("(t)", 1309s # arg_arg_t), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_t_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_t_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_t_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_t: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_t_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # guint64 arg_arg_t, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodT", 1309s # g_variant_new ("(t)", 1309s # arg_arg_t), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_t: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_t ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp_pwsy4nl.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp_pwsy4nl.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # gdouble arg_arg_d, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_double (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_d", 1309s # (gchar *) "d", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodD", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-d", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_d: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-d", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_d, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_d: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_d: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_d ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gdouble arg_arg_d, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodD", 1309s # g_variant_new ("(d)", 1309s # arg_arg_d), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_d_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_d_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_d_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_d: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_d_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # gdouble arg_arg_d, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodD", 1309s # g_variant_new ("(d)", 1309s # arg_arg_d), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_d: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_d ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp8cl4wcfx.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp8cl4wcfx.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *arg_arg_s, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_string (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_s", 1309s # (gchar *) "s", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodS", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-s", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_s: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-s", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_s, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_s: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_s: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_s ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_s, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodS", 1309s # g_variant_new ("(s)", 1309s # arg_arg_s), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_s_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_s_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_s_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_s: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_s_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_s, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodS", 1309s # g_variant_new ("(s)", 1309s # arg_arg_s), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_s: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_s ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp5ase8cx0.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp5ase8cx0.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *arg_arg_o, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_string (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_o", 1309s # (gchar *) "o", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodO", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-o", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_o: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-o", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_o, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_o: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_o: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_o ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_o, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodO", 1309s # g_variant_new ("(o)", 1309s # arg_arg_o), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_o_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_o_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_o_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_o: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_o_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_o, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodO", 1309s # g_variant_new ("(o)", 1309s # arg_arg_o), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_o: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_o ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp19a225s0.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp19a225s0.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *arg_arg_g, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_string (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_g", 1309s # (gchar *) "g", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodG", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-g", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_g: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-g", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_g, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_g: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_g: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_g ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_g, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodG", 1309s # g_variant_new ("(g)", 1309s # arg_arg_g), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_g_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_g_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_g_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_g: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_g_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_g, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodG", 1309s # g_variant_new ("(g)", 1309s # arg_arg_g), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_g: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_g ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpr7i7tu40.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpr7i7tu40.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # GVariant *arg_arg_h, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_variant (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_h", 1309s # (gchar *) "h", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodH", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-h", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_h: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-h", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_h, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_h: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_h: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_h ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GVariant *arg_arg_h, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodH", 1309s # g_variant_new ("(@h)", 1309s # arg_arg_h), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_h_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_h_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_h_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_h: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_h_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GVariant *arg_arg_h, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodH", 1309s # g_variant_new ("(@h)", 1309s # arg_arg_h), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_h: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_h ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpb5d8a7x9.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpb5d8a7x9.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *arg_arg_ay, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_string (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_ay", 1309s # (gchar *) "ay", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodAy", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-ay", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_ay: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-ay", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ay: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_ay: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_ay ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_ay, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAy", 1309s # g_variant_new ("(^ay)", 1309s # arg_arg_ay), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_ay: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *arg_arg_ay, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAy", 1309s # g_variant_new ("(^ay)", 1309s # arg_arg_ay), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_ay: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_ay ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpive1ydld.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpive1ydld.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *const *arg_arg_as, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_boxed (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_as", 1309s # (gchar *) "as", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodAs", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-as", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_as: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-as", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_as, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_as: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_as: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_as ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_as, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAs", 1309s # g_variant_new ("(^as)", 1309s # arg_arg_as), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_as_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_as_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_as_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_as: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_as_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_as, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAs", 1309s # g_variant_new ("(^as)", 1309s # arg_arg_as), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_as: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_as ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpdfr_mx66.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpdfr_mx66.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *const *arg_arg_ao, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_boxed (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_ao", 1309s # (gchar *) "ao", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodAo", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-ao", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_ao: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-ao", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ao: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_ao: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_ao ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_ao, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAo", 1309s # g_variant_new ("(^ao)", 1309s # arg_arg_ao), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_ao: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_ao, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAo", 1309s # g_variant_new ("(^ao)", 1309s # arg_arg_ao), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_ao: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_ao ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmpdgtns_qv.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmpdgtns_qv.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # const gchar *const *arg_arg_aay, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_boxed (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_aay", 1309s # (gchar *) "aay", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodAay", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-aay", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_aay: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-aay", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_aay: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_aay: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_aay ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_aay, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAay", 1309s # g_variant_new ("(^aay)", 1309s # arg_arg_aay), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_aay: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # const gchar *const *arg_arg_aay, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAay", 1309s # g_variant_new ("(^aay)", 1309s # arg_arg_aay), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_aay: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_aay ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # 1309s # /tmp/tmpxe69t14w/tmp4zpynsxb.xml: 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # 1309s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxe69t14w/tmp4zpynsxb.xml', '--output', '-', '--body'] 1309s # Return code: 0 1309s # Output: 1309s # /* 1309s # * This file is generated by gdbus-codegen, do not modify it. 1309s # * 1309s # * The license of this code is the same as for the D-Bus interface description 1309s # * it was derived from. Note that it links to GLib, so must comply with the 1309s # * LGPL linking clauses. 1309s # */ 1309s # 1309s # #ifdef HAVE_CONFIG_H 1309s # # include "config.h" 1309s # #endif 1309s # 1309s # #include 1309s # #ifdef G_OS_UNIX 1309s # # include 1309s # #endif 1309s # 1309s # #ifdef G_ENABLE_DEBUG 1309s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1309s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1309s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1309s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1309s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1309s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1309s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1309s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1309s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1309s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1309s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1309s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1309s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1309s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1309s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1309s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1309s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1309s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1309s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1309s # #else /* !G_ENABLE_DEBUG */ 1309s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1309s # * Do not access GValues directly in your code. Instead, use the 1309s # * g_value_get_*() functions 1309s # */ 1309s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1309s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1309s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1309s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1309s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1309s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1309s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1309s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1309s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1309s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1309s # #endif /* !G_ENABLE_DEBUG */ 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusArgInfo parent_struct; 1309s # gboolean use_gvariant; 1309s # } _ExtendedGDBusArgInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusMethodInfo parent_struct; 1309s # const gchar *signal_name; 1309s # gboolean pass_fdlist; 1309s # } _ExtendedGDBusMethodInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusSignalInfo parent_struct; 1309s # const gchar *signal_name; 1309s # } _ExtendedGDBusSignalInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusPropertyInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # guint use_gvariant : 1; 1309s # guint emits_changed_signal : 1; 1309s # } _ExtendedGDBusPropertyInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # GDBusInterfaceInfo parent_struct; 1309s # const gchar *hyphen_name; 1309s # } _ExtendedGDBusInterfaceInfo; 1309s # 1309s # typedef struct 1309s # { 1309s # const _ExtendedGDBusPropertyInfo *info; 1309s # guint prop_id; 1309s # GValue orig_value; /* the value before the change */ 1309s # } ChangedProperty; 1309s # 1309s # static void 1309s # _changed_property_free (ChangedProperty *data) 1309s # { 1309s # g_value_unset (&data->orig_value); 1309s # g_free (data); 1309s # } 1309s # 1309s # static gboolean 1309s # _g_strv_equal0 (gchar **a, gchar **b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # guint n; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # if (g_strv_length (a) != g_strv_length (b)) 1309s # goto out; 1309s # for (n = 0; a[n] != NULL; n++) 1309s # if (g_strcmp0 (a[n], b[n]) != 0) 1309s # goto out; 1309s # ret = TRUE; 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _g_variant_equal0 (GVariant *a, GVariant *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # if (a == NULL && b == NULL) 1309s # { 1309s # ret = TRUE; 1309s # goto out; 1309s # } 1309s # if (a == NULL || b == NULL) 1309s # goto out; 1309s # ret = g_variant_equal (a, b); 1309s # out: 1309s # return ret; 1309s # } 1309s # 1309s # G_GNUC_UNUSED static gboolean 1309s # _g_value_equal (const GValue *a, const GValue *b) 1309s # { 1309s # gboolean ret = FALSE; 1309s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1309s # switch (G_VALUE_TYPE (a)) 1309s # { 1309s # case G_TYPE_BOOLEAN: 1309s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1309s # break; 1309s # case G_TYPE_UCHAR: 1309s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1309s # break; 1309s # case G_TYPE_INT: 1309s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1309s # break; 1309s # case G_TYPE_UINT: 1309s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1309s # break; 1309s # case G_TYPE_INT64: 1309s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1309s # break; 1309s # case G_TYPE_UINT64: 1309s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1309s # break; 1309s # case G_TYPE_DOUBLE: 1309s # { 1309s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1309s # gdouble da = g_value_get_double (a); 1309s # gdouble db = g_value_get_double (b); 1309s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1309s # } 1309s # break; 1309s # case G_TYPE_STRING: 1309s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1309s # break; 1309s # case G_TYPE_VARIANT: 1309s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1309s # break; 1309s # default: 1309s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1309s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1309s # else 1309s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1309s # break; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static void 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint G_GNUC_UNUSED, 1309s # void *marshal_data) 1309s # { 1309s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1309s # (void *data1, 1309s # GDBusMethodInvocation *arg_method_invocation, 1309s # GVariant *arg_arg_asv, 1309s # void *data2); 1309s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1309s # GCClosure *cc = (GCClosure*) closure; 1309s # void *data1, *data2; 1309s # gboolean v_return; 1309s # 1309s # g_return_if_fail (return_value != NULL); 1309s # g_return_if_fail (n_param_values == 3); 1309s # 1309s # if (G_CCLOSURE_SWAP_DATA (closure)) 1309s # { 1309s # data1 = closure->data; 1309s # data2 = g_value_peek_pointer (param_values + 0); 1309s # } 1309s # else 1309s # { 1309s # data1 = g_value_peek_pointer (param_values + 0); 1309s # data2 = closure->data; 1309s # } 1309s # 1309s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1309s # (marshal_data ? marshal_data : cc->callback); 1309s # 1309s # v_return = 1309s # callback (data1, 1309s # g_marshal_value_peek_object (param_values + 1), 1309s # g_marshal_value_peek_variant (param_values + 2), 1309s # data2); 1309s # 1309s # g_value_set_boolean (return_value, v_return); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ 1309s # * Code for interface org.project.UsefulInterface 1309s # * ------------------------------------------------------------------------ 1309s # */ 1309s # 1309s # /** 1309s # * SECTION:OrgProjectUsefulInterface 1309s # * @title: OrgProjectUsefulInterface 1309s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1309s # * 1309s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1309s # */ 1309s # 1309s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1309s # 1309s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "arg_asv", 1309s # (gchar *) "a{sv}", 1309s # NULL 1309s # }, 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "SingleArgMethodAsv", 1309s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "handle-single-arg-method-asv", 1309s # FALSE 1309s # }; 1309s # 1309s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1309s # { 1309s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1309s # NULL 1309s # }; 1309s # 1309s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1309s # { 1309s # { 1309s # -1, 1309s # (gchar *) "org.project.UsefulInterface", 1309s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1309s # NULL, 1309s # NULL, 1309s # NULL 1309s # }, 1309s # "org-project-useful-interface", 1309s # }; 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_interface_info: 1309s # * 1309s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1309s # * 1309s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1309s # */ 1309s # GDBusInterfaceInfo * 1309s # org_project_useful_interface_interface_info (void) 1309s # { 1309s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_override_properties: 1309s # * @klass: The class structure for a #GObject derived class. 1309s # * @property_id_begin: The property id to assign to the first overridden property. 1309s # * 1309s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1309s # * The properties are overridden in the order they are defined. 1309s # * 1309s # * Returns: The last property id. 1309s # */ 1309s # guint 1309s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1309s # { 1309s # return property_id_begin - 1; 1309s # } 1309s # 1309s # 1309s # inline static void 1309s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1309s # GClosure *closure, 1309s # GValue *return_value, 1309s # unsigned int n_param_values, 1309s # const GValue *param_values, 1309s # void *invocation_hint, 1309s # void *marshal_data) 1309s # { 1309s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1309s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1309s # } 1309s # 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterface: 1309s # * 1309s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceIface: 1309s # * @parent_iface: The parent interface. 1309s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1309s # * 1309s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1309s # */ 1309s # 1309s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1309s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1309s # 1309s # static void 1309s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1309s # { 1309s # /* GObject signals for incoming D-Bus method calls: */ 1309s # /** 1309s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: A #GDBusMethodInvocation. 1309s # * @arg_arg_asv: Argument passed by remote caller. 1309s # * 1309s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1309s # * 1309s # * 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. 1309s # * 1309s # * 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. 1309s # */ 1309s # g_signal_new ("handle-single-arg-method-asv", 1309s # G_TYPE_FROM_INTERFACE (iface), 1309s # G_SIGNAL_RUN_LAST, 1309s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1309s # g_signal_accumulator_true_handled, 1309s # NULL, 1309s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1309s # G_TYPE_BOOLEAN, 1309s # 2, 1309s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1309s # 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_asv: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_asv: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1309s # */ 1309s # void 1309s # org_project_useful_interface_call_single_arg_method_asv ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GVariant *arg_arg_asv, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAsv", 1309s # g_variant_new ("(@a{sv})", 1309s # arg_arg_asv), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # callback, 1309s # user_data); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1309s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1309s # * @arg_arg_asv: Argument to pass with the method invocation. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL. 1309s # * 1309s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1309s # * 1309s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1309s # */ 1309s # gboolean 1309s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1309s # OrgProjectUsefulInterface *proxy, 1309s # GVariant *arg_arg_asv, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GVariant *_ret; 1309s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1309s # "SingleArgMethodAsv", 1309s # g_variant_new ("(@a{sv})", 1309s # arg_arg_asv), 1309s # G_DBUS_CALL_FLAGS_NONE, 1309s # -1, 1309s # cancellable, 1309s # error); 1309s # if (_ret == NULL) 1309s # goto _out; 1309s # g_variant_get (_ret, 1309s # "()"); 1309s # g_variant_unref (_ret); 1309s # _out: 1309s # return _ret != NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_complete_single_arg_method_asv: 1309s # * @object: A #OrgProjectUsefulInterface. 1309s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1309s # * 1309s # * 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. 1309s # * 1309s # * This method will free @invocation, you cannot use it afterwards. 1309s # */ 1309s # void 1309s # org_project_useful_interface_complete_single_arg_method_asv ( 1309s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1309s # GDBusMethodInvocation *invocation) 1309s # { 1309s # g_dbus_method_invocation_return_value (invocation, 1309s # g_variant_new ("()")); 1309s # } 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxy: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceProxyClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceProxyPrivate 1309s # { 1309s # GData *qdata; 1309s # }; 1309s # 1309s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_proxy_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1309s # g_datalist_clear (&proxy->priv->qdata); 1309s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1309s # guint prop_id G_GNUC_UNUSED, 1309s # const GValue *value G_GNUC_UNUSED, 1309s # GParamSpec *pspec G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1309s # const gchar *sender_name G_GNUC_UNUSED, 1309s # const gchar *signal_name, 1309s # GVariant *parameters) 1309s # { 1309s # _ExtendedGDBusSignalInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # gsize n; 1309s # guint signal_id; 1309s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1309s # if (info == NULL) 1309s # return; 1309s # num_params = g_variant_n_children (parameters); 1309s # paramv = g_new0 (GValue, num_params + 1); 1309s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[0], proxy); 1309s # g_variant_iter_init (&iter, parameters); 1309s # n = 1; 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_signal_emitv (paramv, signal_id, 0, NULL); 1309s # for (n = 0; n < num_params + 1; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1309s # GVariant *changed_properties, 1309s # const gchar *const *invalidated_properties) 1309s # { 1309s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1309s # guint n; 1309s # const gchar *key; 1309s # GVariantIter *iter; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # g_variant_get (changed_properties, "a{sv}", &iter); 1309s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1309s # g_datalist_remove_data (&proxy->priv->qdata, key); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # g_variant_iter_free (iter); 1309s # for (n = 0; invalidated_properties[n] != NULL; n++) 1309s # { 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1309s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1309s # if (info != NULL) 1309s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1309s # } 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1309s # #else 1309s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1309s # #endif 1309s # 1309s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusProxyClass *proxy_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1309s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1309s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1309s # 1309s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1309s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1309s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_sync: 1309s # * @connection: A #GDBusConnection. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_sync ( 1309s # GDBusConnection *connection, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1309s # * @user_data: User data to pass to @callback. 1309s # * 1309s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1309s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1309s # */ 1309s # void 1309s # org_project_useful_interface_proxy_new_for_bus ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GAsyncReadyCallback callback, 1309s # gpointer user_data) 1309s # { 1309s # g_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); 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_finish: 1309s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_finish ( 1309s # GAsyncResult *res, 1309s # GError **error) 1309s # { 1309s # GObject *ret; 1309s # GObject *source_object; 1309s # source_object = g_async_result_get_source_object (res); 1309s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1309s # g_object_unref (source_object); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_proxy_new_for_bus_sync: 1309s # * @bus_type: A #GBusType. 1309s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1309s # * @name: A bus name (well-known or unique). 1309s # * @object_path: An object path. 1309s # * @cancellable: (nullable): A #GCancellable or %NULL. 1309s # * @error: Return location for error or %NULL 1309s # * 1309s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1309s # * 1309s # * The calling thread is blocked until a reply is received. 1309s # * 1309s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_proxy_new_for_bus_sync ( 1309s # GBusType bus_type, 1309s # GDBusProxyFlags flags, 1309s # const gchar *name, 1309s # const gchar *object_path, 1309s # GCancellable *cancellable, 1309s # GError **error) 1309s # { 1309s # GInitable *ret; 1309s # 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); 1309s # if (ret != NULL) 1309s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1309s # else 1309s # return NULL; 1309s # } 1309s # 1309s # 1309s # /* ------------------------------------------------------------------------ */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeleton: 1309s # * 1309s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1309s # */ 1309s # 1309s # /** 1309s # * OrgProjectUsefulInterfaceSkeletonClass: 1309s # * @parent_class: The parent class. 1309s # * 1309s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1309s # */ 1309s # 1309s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1309s # { 1309s # GValue *properties; 1309s # GList *changed_properties; 1309s # GSource *changed_properties_idle_source; 1309s # GMainContext *context; 1309s # GMutex lock; 1309s # }; 1309s # 1309s # static void 1309s # _org_project_useful_interface_skeleton_handle_method_call ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name, 1309s # const gchar *method_name, 1309s # GVariant *parameters, 1309s # GDBusMethodInvocation *invocation, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # _ExtendedGDBusMethodInfo *info; 1309s # GVariantIter iter; 1309s # GVariant *child; 1309s # GValue *paramv; 1309s # gsize num_params; 1309s # guint num_extra; 1309s # gsize n; 1309s # guint signal_id; 1309s # GValue return_value = G_VALUE_INIT; 1309s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1309s # g_assert (info != NULL); 1309s # num_params = g_variant_n_children (parameters); 1309s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1309s # n = 0; 1309s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_set_object (¶mv[n++], skeleton); 1309s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1309s # g_value_set_object (¶mv[n++], invocation); 1309s # if (info->pass_fdlist) 1309s # { 1309s # #ifdef G_OS_UNIX 1309s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1309s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1309s # #else 1309s # g_assert_not_reached (); 1309s # #endif 1309s # } 1309s # g_variant_iter_init (&iter, parameters); 1309s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1309s # { 1309s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1309s # if (arg_info->use_gvariant) 1309s # { 1309s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1309s # g_value_set_variant (¶mv[n], child); 1309s # n++; 1309s # } 1309s # else 1309s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1309s # g_variant_unref (child); 1309s # } 1309s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1309s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1309s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1309s # if (!g_value_get_boolean (&return_value)) 1309s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1309s # g_value_unset (&return_value); 1309s # for (n = 0; n < num_params + num_extra; n++) 1309s # g_value_unset (¶mv[n]); 1309s # g_free (paramv); 1309s # } 1309s # 1309s # static GVariant * 1309s # _org_project_useful_interface_skeleton_handle_get_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # GVariant *ret; 1309s # ret = NULL; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # g_value_init (&value, pspec->value_type); 1309s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1309s # g_value_unset (&value); 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static gboolean 1309s # _org_project_useful_interface_skeleton_handle_set_property ( 1309s # GDBusConnection *connection G_GNUC_UNUSED, 1309s # const gchar *sender G_GNUC_UNUSED, 1309s # const gchar *object_path G_GNUC_UNUSED, 1309s # const gchar *interface_name G_GNUC_UNUSED, 1309s # const gchar *property_name, 1309s # GVariant *variant, 1309s # GError **error, 1309s # gpointer user_data) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1309s # GValue value = G_VALUE_INIT; 1309s # GParamSpec *pspec; 1309s # _ExtendedGDBusPropertyInfo *info; 1309s # gboolean ret; 1309s # ret = FALSE; 1309s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1309s # g_assert (info != NULL); 1309s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1309s # if (pspec == NULL) 1309s # { 1309s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1309s # } 1309s # else 1309s # { 1309s # if (info->use_gvariant) 1309s # g_value_set_variant (&value, variant); 1309s # else 1309s # g_dbus_gvariant_to_gvalue (variant, &value); 1309s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1309s # g_value_unset (&value); 1309s # ret = TRUE; 1309s # } 1309s # return ret; 1309s # } 1309s # 1309s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1309s # { 1309s # _org_project_useful_interface_skeleton_handle_method_call, 1309s # _org_project_useful_interface_skeleton_handle_get_property, 1309s # _org_project_useful_interface_skeleton_handle_set_property, 1309s # {NULL} 1309s # }; 1309s # 1309s # static GDBusInterfaceInfo * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return org_project_useful_interface_interface_info (); 1309s # } 1309s # 1309s # static GDBusInterfaceVTable * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1309s # { 1309s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1309s # } 1309s # 1309s # static GVariant * 1309s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1309s # 1309s # GVariantBuilder builder; 1309s # guint n; 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1309s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #else 1309s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1309s # #endif 1309s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1309s # goto out; 1309s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1309s # { 1309s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1309s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1309s # { 1309s # GVariant *value; 1309s # 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); 1309s # if (value != NULL) 1309s # { 1309s # g_variant_take_ref (value); 1309s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1309s # g_variant_unref (value); 1309s # } 1309s # } 1309s # } 1309s # out: 1309s # return g_variant_builder_end (&builder); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #else 1309s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1309s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1309s # 1309s # #endif 1309s # static void 1309s # org_project_useful_interface_skeleton_finalize (GObject *object) 1309s # { 1309s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1309s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1309s # if (skeleton->priv->changed_properties_idle_source != NULL) 1309s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1309s # g_main_context_unref (skeleton->priv->context); 1309s # g_mutex_clear (&skeleton->priv->lock); 1309s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1309s # { 1309s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1309s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1309s # #else 1309s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1309s # #endif 1309s # 1309s # g_mutex_init (&skeleton->priv->lock); 1309s # skeleton->priv->context = g_main_context_ref_thread_default (); 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1309s # { 1309s # GObjectClass *gobject_class; 1309s # GDBusInterfaceSkeletonClass *skeleton_class; 1309s # 1309s # gobject_class = G_OBJECT_CLASS (klass); 1309s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1309s # 1309s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1309s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1309s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1309s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1309s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1309s # 1309s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1309s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1309s # #endif 1309s # } 1309s # 1309s # static void 1309s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1309s # { 1309s # } 1309s # 1309s # /** 1309s # * org_project_useful_interface_skeleton_new: 1309s # * 1309s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1309s # * 1309s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1309s # */ 1309s # OrgProjectUsefulInterface * 1309s # org_project_useful_interface_skeleton_new (void) 1309s # { 1309s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1309s # } 1309s # Error: 1309s # Executing: glib/codegen.py.test 1310s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpweyurg6s 1310s # /tmp/tmpweyurg6s/tmp7jkzmpph.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp7jkzmpph.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodB", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-b", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-b", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_b, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_b: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_b ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodB", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_b_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_b_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gboolean *out_arg_b, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(b)", 1310s # out_arg_b); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_b_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_b_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gboolean *out_arg_b, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodB", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(b)", 1310s # out_arg_b); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_b: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_b: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_b ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gboolean arg_b) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(b)", 1310s # arg_b)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp_8xf4gkh.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp_8xf4gkh.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodY", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-y", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-y", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_y, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_y: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_y ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodY", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_y_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_y_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guchar *out_arg_y, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(y)", 1310s # out_arg_y); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_y_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_y_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guchar *out_arg_y, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodY", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(y)", 1310s # out_arg_y); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_y: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_y: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_y ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # guchar arg_y) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(y)", 1310s # arg_y)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmphq4epru7.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmphq4epru7.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodN", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-n", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-n", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_n, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_n: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_n ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodN", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_n_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_n_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint16 *out_arg_n, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(n)", 1310s # out_arg_n); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_n_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_n_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint16 *out_arg_n, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodN", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(n)", 1310s # out_arg_n); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_n: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_n: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_n ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gint16 arg_n) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(n)", 1310s # arg_n)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpwajidceg.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpwajidceg.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodQ", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-q", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-q", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_q, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_q: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_q ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodQ", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_q_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_q_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint16 *out_arg_q, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(q)", 1310s # out_arg_q); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_q_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_q_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint16 *out_arg_q, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodQ", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(q)", 1310s # out_arg_q); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_q: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_q: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_q ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # guint16 arg_q) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(q)", 1310s # arg_q)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp2bda_grm.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp2bda_grm.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodI", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-i", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-i", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_i, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_i: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_i ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodI", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_i_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_i_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint *out_arg_i, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(i)", 1310s # out_arg_i); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_i_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_i_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint *out_arg_i, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodI", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(i)", 1310s # out_arg_i); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_i: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_i: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_i ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gint arg_i) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(i)", 1310s # arg_i)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpcmv1ufnv.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpcmv1ufnv.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodU", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-u", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-u", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_u, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_u: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_u ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodU", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_u_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_u_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint *out_arg_u, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(u)", 1310s # out_arg_u); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_u_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_u_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint *out_arg_u, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodU", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(u)", 1310s # out_arg_u); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_u: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_u: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_u ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # guint arg_u) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(u)", 1310s # arg_u)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmphb496ftc.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmphb496ftc.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodX", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-x", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-x", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_x, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_x: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_x ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodX", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_x_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_x_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint64 *out_arg_x, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(x)", 1310s # out_arg_x); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_x_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_x_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gint64 *out_arg_x, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodX", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(x)", 1310s # out_arg_x); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_x: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_x: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_x ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gint64 arg_x) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(x)", 1310s # arg_x)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp7ckx_kcj.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp7ckx_kcj.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodT", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-t", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-t", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_t, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_t: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_t ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodT", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_t_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_t_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint64 *out_arg_t, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(t)", 1310s # out_arg_t); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_t_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_t_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # guint64 *out_arg_t, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodT", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(t)", 1310s # out_arg_t); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_t: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_t: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_t ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # guint64 arg_t) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(t)", 1310s # arg_t)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp9tf9n6kf.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp9tf9n6kf.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodD", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-d", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-d", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_d, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_d: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_d ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodD", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_d_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_d_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gdouble *out_arg_d, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(d)", 1310s # out_arg_d); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_d_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_d_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gdouble *out_arg_d, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodD", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(d)", 1310s # out_arg_d); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_d: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_d: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_d ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gdouble arg_d) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(d)", 1310s # arg_d)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp_txn4tdl.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp_txn4tdl.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodS", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-s", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-s", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_s, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_s: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_s ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodS", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_s_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_s_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_s, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(s)", 1310s # out_arg_s); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_s_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_s_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_s, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodS", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(s)", 1310s # out_arg_s); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_s: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_s: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_s ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *arg_s) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(s)", 1310s # arg_s)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp5uiomg2z.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp5uiomg2z.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodO", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-o", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-o", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_o, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_o: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_o ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodO", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_o_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_o_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_o, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(o)", 1310s # out_arg_o); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_o_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_o_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_o, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodO", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(o)", 1310s # out_arg_o); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_o: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_o: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_o ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *arg_o) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(o)", 1310s # arg_o)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpstmw9f92.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpstmw9f92.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodG", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-g", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-g", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_g, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_g: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_g ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodG", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_g_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_g_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_g, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(g)", 1310s # out_arg_g); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_g_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_g_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_g, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodG", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(g)", 1310s # out_arg_g); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_g: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_g: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_g ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *arg_g) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(g)", 1310s # arg_g)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpd_wi9t1t.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpd_wi9t1t.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodH", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-h", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-h", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_h, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_h: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_h ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodH", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_h_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_h_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GVariant **out_arg_h, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(@h)", 1310s # out_arg_h); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_h_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_h_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GVariant **out_arg_h, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodH", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(@h)", 1310s # out_arg_h); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_h: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_h: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_h ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # GVariant *arg_h) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(@h)", 1310s # arg_h)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmp7pe24d79.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmp7pe24d79.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodAy", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-ay", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-ay", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ay: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_ay ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAy", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_ay, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^ay)", 1310s # out_arg_ay); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar **out_arg_ay, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAy", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^ay)", 1310s # out_arg_ay); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_ay: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_ay: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_ay ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *arg_ay) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(^ay)", 1310s # arg_ay)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpsh0ycg9r.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpsh0ycg9r.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodAs", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-as", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-as", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_as, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_as: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_as ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAs", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_as_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_as_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_as, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^as)", 1310s # out_arg_as); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_as_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_as_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_as, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAs", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^as)", 1310s # out_arg_as); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_as: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_as: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_as ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *const *arg_as) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(^as)", 1310s # arg_as)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpb6u12ptf.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpb6u12ptf.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodAo", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-ao", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-ao", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ao: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_ao ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAo", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_ao, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^ao)", 1310s # out_arg_ao); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_ao, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAo", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^ao)", 1310s # out_arg_ao); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_ao: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_ao: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_ao ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *const *arg_ao) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(^ao)", 1310s # arg_ao)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpzcbtn9p_.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpzcbtn9p_.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodAay", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-aay", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-aay", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_aay: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_aay ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAay", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_aay, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^aay)", 1310s # out_arg_aay); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # gchar ***out_arg_aay, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAay", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(^aay)", 1310s # out_arg_aay); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_aay: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_aay: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_aay ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # const gchar *const *arg_aay) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(^aay)", 1310s # arg_aay)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s # 1310s # /tmp/tmpweyurg6s/tmpbnw_vqpz.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpweyurg6s/tmpbnw_vqpz.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "arg_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgMethodAsv", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-single-arg-method-asv", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-single-arg-method-asv", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_asv: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_useful_interface_call_single_arg_method_asv ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAsv", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GVariant **out_arg_asv, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(@a{sv})", 1310s # out_arg_asv); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1310s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1310s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1310s # OrgProjectUsefulInterface *proxy, 1310s # GVariant **out_arg_asv, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SingleArgMethodAsv", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(@a{sv})", 1310s # out_arg_asv); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_complete_single_arg_method_asv: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @arg_asv: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_useful_interface_complete_single_arg_method_asv ( 1310s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # GVariant *arg_asv) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(@a{sv})", 1310s # arg_asv)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmptrdcjy6q 1310s # /tmp/tmptrdcjy6q/tmp5t32wjp4.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptrdcjy6q/tmp5t32wjp4.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 20); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # g_marshal_value_peek_boolean (param_values + 2), 1310s # g_marshal_value_peek_uchar (param_values + 3), 1310s # g_marshal_value_peek_int (param_values + 4), 1310s # g_marshal_value_peek_uint (param_values + 5), 1310s # g_marshal_value_peek_int (param_values + 6), 1310s # g_marshal_value_peek_uint (param_values + 7), 1310s # g_marshal_value_peek_int64 (param_values + 8), 1310s # g_marshal_value_peek_uint64 (param_values + 9), 1310s # g_marshal_value_peek_double (param_values + 10), 1310s # g_marshal_value_peek_string (param_values + 11), 1310s # g_marshal_value_peek_string (param_values + 12), 1310s # g_marshal_value_peek_string (param_values + 13), 1310s # g_marshal_value_peek_variant (param_values + 14), 1310s # g_marshal_value_peek_string (param_values + 15), 1310s # g_marshal_value_peek_boxed (param_values + 16), 1310s # g_marshal_value_peek_boxed (param_values + 17), 1310s # g_marshal_value_peek_boxed (param_values + 18), 1310s # g_marshal_value_peek_variant (param_values + 19), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.CallableIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectCallableIface 1310s # * @title: OrgProjectCallableIface 1310s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.CallableIface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1310s # { 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "MethodWithManyArgs", 1310s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "handle-method-with-many-args", 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1310s # { 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SameMethodWithManyArgs", 1310s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "handle-same-method-with-many-args", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1310s # { 1310s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1310s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.CallableIface", 1310s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-callable-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_callable_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_callable_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_callable_iface_method_marshal_method_with_many_args ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _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, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _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, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectCallableIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1310s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.CallableIface. 1310s # */ 1310s # 1310s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectCallableIface::handle-method-with-many-args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * @arg_an_b: Argument passed by remote caller. 1310s # * @arg_an_y: Argument passed by remote caller. 1310s # * @arg_an_n: Argument passed by remote caller. 1310s # * @arg_an_q: Argument passed by remote caller. 1310s # * @arg_an_i: Argument passed by remote caller. 1310s # * @arg_an_u: Argument passed by remote caller. 1310s # * @arg_an_x: Argument passed by remote caller. 1310s # * @arg_an_t: Argument passed by remote caller. 1310s # * @arg_an_d: Argument passed by remote caller. 1310s # * @arg_an_s: Argument passed by remote caller. 1310s # * @arg_an_o: Argument passed by remote caller. 1310s # * @arg_an_g: Argument passed by remote caller. 1310s # * @arg_an_h: Argument passed by remote caller. 1310s # * @arg_an_ay: Argument passed by remote caller. 1310s # * @arg_an_as: Argument passed by remote caller. 1310s # * @arg_an_ao: Argument passed by remote caller. 1310s # * @arg_an_aay: Argument passed by remote caller. 1310s # * @arg_an_asv: Argument passed by remote caller. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-method-with-many-args", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_callable_iface_method_marshal_method_with_many_args, 1310s # G_TYPE_BOOLEAN, 1310s # 19, 1310s # 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); 1310s # 1310s # /** 1310s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * @arg_an_b: Argument passed by remote caller. 1310s # * @arg_an_y: Argument passed by remote caller. 1310s # * @arg_an_n: Argument passed by remote caller. 1310s # * @arg_an_q: Argument passed by remote caller. 1310s # * @arg_an_i: Argument passed by remote caller. 1310s # * @arg_an_u: Argument passed by remote caller. 1310s # * @arg_an_x: Argument passed by remote caller. 1310s # * @arg_an_t: Argument passed by remote caller. 1310s # * @arg_an_d: Argument passed by remote caller. 1310s # * @arg_an_s: Argument passed by remote caller. 1310s # * @arg_an_o: Argument passed by remote caller. 1310s # * @arg_an_g: Argument passed by remote caller. 1310s # * @arg_an_h: Argument passed by remote caller. 1310s # * @arg_an_ay: Argument passed by remote caller. 1310s # * @arg_an_as: Argument passed by remote caller. 1310s # * @arg_an_ao: Argument passed by remote caller. 1310s # * @arg_an_aay: Argument passed by remote caller. 1310s # * @arg_an_asv: Argument passed by remote caller. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-same-method-with-many-args", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1310s # G_TYPE_BOOLEAN, 1310s # 19, 1310s # 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); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_callable_iface_call_method_with_many_args ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args_finish: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_method_with_many_args_finish ( 1310s # OrgProjectCallableIface *proxy, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args_sync: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_method_with_many_args_sync ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_same_method_with_many_args: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_callable_iface_call_same_method_with_many_args ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "SameMethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1310s # OrgProjectCallableIface *proxy, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "SameMethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_complete_method_with_many_args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_callable_iface_complete_method_with_many_args ( 1310s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("()")); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_complete_same_method_with_many_args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_callable_iface_complete_same_method_with_many_args ( 1310s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("()")); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceProxy: 1310s # * 1310s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectCallableIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectCallableIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_callable_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_callable_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_callable_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectCallableIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_callable_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_callable_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_callable_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1310s # { 1310s # _org_project_callable_iface_skeleton_handle_method_call, 1310s # _org_project_callable_iface_skeleton_handle_get_property, 1310s # _org_project_callable_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_callable_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_callable_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.OtherCallableIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectOtherCallableIface 1310s # * @title: OrgProjectOtherCallableIface 1310s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1310s # { 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "MethodWithManyArgs", 1310s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "handle-method-with-many-args", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1310s # { 1310s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.OtherCallableIface", 1310s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-other-callable-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_other_callable_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _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, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1310s # */ 1310s # 1310s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1310s # * @object: A #OrgProjectOtherCallableIface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * @arg_an_b: Argument passed by remote caller. 1310s # * @arg_an_y: Argument passed by remote caller. 1310s # * @arg_an_n: Argument passed by remote caller. 1310s # * @arg_an_q: Argument passed by remote caller. 1310s # * @arg_an_i: Argument passed by remote caller. 1310s # * @arg_an_u: Argument passed by remote caller. 1310s # * @arg_an_x: Argument passed by remote caller. 1310s # * @arg_an_t: Argument passed by remote caller. 1310s # * @arg_an_d: Argument passed by remote caller. 1310s # * @arg_an_s: Argument passed by remote caller. 1310s # * @arg_an_o: Argument passed by remote caller. 1310s # * @arg_an_g: Argument passed by remote caller. 1310s # * @arg_an_h: Argument passed by remote caller. 1310s # * @arg_an_ay: Argument passed by remote caller. 1310s # * @arg_an_as: Argument passed by remote caller. 1310s # * @arg_an_ao: Argument passed by remote caller. 1310s # * @arg_an_aay: Argument passed by remote caller. 1310s # * @arg_an_asv: Argument passed by remote caller. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-method-with-many-args", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1310s # G_TYPE_BOOLEAN, 1310s # 19, 1310s # 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); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_call_method_with_many_args: 1310s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_other_callable_iface_call_method_with_many_args ( 1310s # OrgProjectOtherCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1310s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1310s # OrgProjectOtherCallableIface *proxy, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1310s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1310s # * @arg_an_b: Argument to pass with the method invocation. 1310s # * @arg_an_y: Argument to pass with the method invocation. 1310s # * @arg_an_n: Argument to pass with the method invocation. 1310s # * @arg_an_q: Argument to pass with the method invocation. 1310s # * @arg_an_i: Argument to pass with the method invocation. 1310s # * @arg_an_u: Argument to pass with the method invocation. 1310s # * @arg_an_x: Argument to pass with the method invocation. 1310s # * @arg_an_t: Argument to pass with the method invocation. 1310s # * @arg_an_d: Argument to pass with the method invocation. 1310s # * @arg_an_s: Argument to pass with the method invocation. 1310s # * @arg_an_o: Argument to pass with the method invocation. 1310s # * @arg_an_g: Argument to pass with the method invocation. 1310s # * @arg_an_h: Argument to pass with the method invocation. 1310s # * @arg_an_ay: Argument to pass with the method invocation. 1310s # * @arg_an_as: Argument to pass with the method invocation. 1310s # * @arg_an_ao: Argument to pass with the method invocation. 1310s # * @arg_an_aay: Argument to pass with the method invocation. 1310s # * @arg_an_asv: Argument to pass with the method invocation. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1310s # OrgProjectOtherCallableIface *proxy, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "()"); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_complete_method_with_many_args: 1310s # * @object: A #OrgProjectOtherCallableIface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_other_callable_iface_complete_method_with_many_args ( 1310s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("()")); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIfaceProxy: 1310s # * 1310s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_callable_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherCallableIface * 1310s # org_project_other_callable_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherCallableIface * 1310s # org_project_other_callable_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_callable_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherCallableIface * 1310s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherCallableIface * 1310s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherCallableIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1310s # { 1310s # _org_project_other_callable_iface_skeleton_handle_method_call, 1310s # _org_project_other_callable_iface_skeleton_handle_get_property, 1310s # _org_project_other_callable_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_other_callable_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_callable_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectOtherCallableIface * 1310s # org_project_other_callable_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpzo970gpc 1310s # /tmp/tmpzo970gpc/tmprazpr8ev.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzo970gpc/tmprazpr8ev.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.CallableIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectCallableIface 1310s # * @title: OrgProjectCallableIface 1310s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for org.project.CallableIface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1310s # { 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1310s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "MethodWithManyArgs", 1310s # NULL, 1310s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-method-with-many-args", 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1310s # { 1310s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.CallableIface", 1310s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-callable-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_callable_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_callable_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_callable_iface_method_marshal_method_with_many_args ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectCallableIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.CallableIface. 1310s # */ 1310s # 1310s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * OrgProjectCallableIface::handle-method-with-many-args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-method-with-many-args", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # org_project_callable_iface_method_marshal_method_with_many_args, 1310s # G_TYPE_BOOLEAN, 1310s # 1, 1310s # G_TYPE_DBUS_METHOD_INVOCATION); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # org_project_callable_iface_call_method_with_many_args ( 1310s # OrgProjectCallableIface *proxy, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args_finish: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_method_with_many_args_finish ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean *out_an_b, 1310s # guchar *out_an_y, 1310s # gint16 *out_an_n, 1310s # guint16 *out_an_q, 1310s # gint *out_an_i, 1310s # guint *out_an_u, 1310s # gint64 *out_an_x, 1310s # guint64 *out_an_t, 1310s # gdouble *out_an_d, 1310s # gchar **out_an_s, 1310s # gchar **out_an_o, 1310s # gchar **out_an_g, 1310s # GVariant **out_an_h, 1310s # gchar **out_an_ay, 1310s # gchar ***out_an_as, 1310s # gchar ***out_an_ao, 1310s # gchar ***out_an_aay, 1310s # GVariant **out_an_asv, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # out_an_b, 1310s # out_an_y, 1310s # out_an_n, 1310s # out_an_q, 1310s # out_an_i, 1310s # out_an_u, 1310s # out_an_x, 1310s # out_an_t, 1310s # out_an_d, 1310s # out_an_s, 1310s # out_an_o, 1310s # out_an_g, 1310s # out_an_h, 1310s # out_an_ay, 1310s # out_an_as, 1310s # out_an_ao, 1310s # out_an_aay, 1310s # out_an_asv); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_call_method_with_many_args_sync: 1310s # * @proxy: A #OrgProjectCallableIfaceProxy. 1310s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1310s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # org_project_callable_iface_call_method_with_many_args_sync ( 1310s # OrgProjectCallableIface *proxy, 1310s # gboolean *out_an_b, 1310s # guchar *out_an_y, 1310s # gint16 *out_an_n, 1310s # guint16 *out_an_q, 1310s # gint *out_an_i, 1310s # guint *out_an_u, 1310s # gint64 *out_an_x, 1310s # guint64 *out_an_t, 1310s # gdouble *out_an_d, 1310s # gchar **out_an_s, 1310s # gchar **out_an_o, 1310s # gchar **out_an_g, 1310s # GVariant **out_an_h, 1310s # gchar **out_an_ay, 1310s # gchar ***out_an_as, 1310s # gchar ***out_an_ao, 1310s # gchar ***out_an_aay, 1310s # GVariant **out_an_asv, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1310s # "MethodWithManyArgs", 1310s # g_variant_new ("()"), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # out_an_b, 1310s # out_an_y, 1310s # out_an_n, 1310s # out_an_q, 1310s # out_an_i, 1310s # out_an_u, 1310s # out_an_x, 1310s # out_an_t, 1310s # out_an_d, 1310s # out_an_s, 1310s # out_an_o, 1310s # out_an_g, 1310s # out_an_h, 1310s # out_an_ay, 1310s # out_an_as, 1310s # out_an_ao, 1310s # out_an_aay, 1310s # out_an_asv); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_complete_method_with_many_args: 1310s # * @object: A #OrgProjectCallableIface. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @an_b: Parameter to return. 1310s # * @an_y: Parameter to return. 1310s # * @an_n: Parameter to return. 1310s # * @an_q: Parameter to return. 1310s # * @an_i: Parameter to return. 1310s # * @an_u: Parameter to return. 1310s # * @an_x: Parameter to return. 1310s # * @an_t: Parameter to return. 1310s # * @an_d: Parameter to return. 1310s # * @an_s: Parameter to return. 1310s # * @an_o: Parameter to return. 1310s # * @an_g: Parameter to return. 1310s # * @an_h: Parameter to return. 1310s # * @an_ay: Parameter to return. 1310s # * @an_as: Parameter to return. 1310s # * @an_ao: Parameter to return. 1310s # * @an_aay: Parameter to return. 1310s # * @an_asv: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # org_project_callable_iface_complete_method_with_many_args ( 1310s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # gboolean an_b, 1310s # guchar an_y, 1310s # gint16 an_n, 1310s # guint16 an_q, 1310s # gint an_i, 1310s # guint an_u, 1310s # gint64 an_x, 1310s # guint64 an_t, 1310s # gdouble an_d, 1310s # const gchar *an_s, 1310s # const gchar *an_o, 1310s # const gchar *an_g, 1310s # GVariant *an_h, 1310s # const gchar *an_ay, 1310s # const gchar *const *an_as, 1310s # const gchar *const *an_ao, 1310s # const gchar *const *an_aay, 1310s # GVariant *an_asv) 1310s # { 1310s # g_dbus_method_invocation_return_value (invocation, 1310s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # an_b, 1310s # an_y, 1310s # an_n, 1310s # an_q, 1310s # an_i, 1310s # an_u, 1310s # an_x, 1310s # an_t, 1310s # an_d, 1310s # an_s, 1310s # an_o, 1310s # an_g, 1310s # an_h, 1310s # an_ay, 1310s # an_as, 1310s # an_ao, 1310s # an_aay, 1310s # an_asv)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceProxy: 1310s # * 1310s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectCallableIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectCallableIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_callable_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_callable_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_callable_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectCallableIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectCallableIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_callable_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_callable_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_callable_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1310s # { 1310s # _org_project_callable_iface_skeleton_handle_method_call, 1310s # _org_project_callable_iface_skeleton_handle_get_property, 1310s # _org_project_callable_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_callable_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_callable_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_callable_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectCallableIface * 1310s # org_project_callable_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpe43vips8 1310s # /tmp/tmpe43vips8/tmpp2sdw25n.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpe43vips8/tmpp2sdw25n.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1310s # (void *data1, 1310s # GDBusMethodInvocation *arg_method_invocation, 1310s # GUnixFDList *arg_fd_list, 1310s # const gchar *arg_greeting, 1310s # void *data2); 1310s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # gboolean v_return; 1310s # 1310s # g_return_if_fail (return_value != NULL); 1310s # g_return_if_fail (n_param_values == 4); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # v_return = 1310s # callback (data1, 1310s # g_marshal_value_peek_object (param_values + 1), 1310s # g_marshal_value_peek_object (param_values + 2), 1310s # g_marshal_value_peek_string (param_values + 3), 1310s # data2); 1310s # 1310s # g_value_set_boolean (return_value, v_return); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface test.FDPassing 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:TestFDPassing 1310s # * @title: TestFDPassing 1310s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1310s # * 1310s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1310s # */ 1310s # 1310s # /* ---- Introspection data for test.FDPassing ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "greeting", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1310s # { 1310s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "response", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1310s # { 1310s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "HelloFD", 1310s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1310s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "handle-hello-fd", 1310s # TRUE 1310s # }; 1310s # 1310s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1310s # { 1310s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "test.FDPassing", 1310s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1310s # NULL, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "test-fdpassing", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * test_fdpassing_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # test_fdpassing_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # test_fdpassing_method_marshal_hello_fd ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * TestFDPassing: 1310s # * 1310s # * Abstract interface type for the D-Bus interface test.FDPassing. 1310s # */ 1310s # 1310s # /** 1310s # * TestFDPassingIface: 1310s # * @parent_iface: The parent interface. 1310s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1310s # * 1310s # * Virtual table for the D-Bus interface test.FDPassing. 1310s # */ 1310s # 1310s # typedef TestFDPassingIface TestFDPassingInterface; 1310s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # test_fdpassing_default_init (TestFDPassingIface *iface) 1310s # { 1310s # /* GObject signals for incoming D-Bus method calls: */ 1310s # /** 1310s # * TestFDPassing::handle-hello-fd: 1310s # * @object: A #TestFDPassing. 1310s # * @invocation: A #GDBusMethodInvocation. 1310s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1310s # * @arg_greeting: Argument passed by remote caller. 1310s # * 1310s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1310s # * 1310s # * 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. 1310s # * 1310s # * 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. 1310s # */ 1310s # g_signal_new ("handle-hello-fd", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1310s # g_signal_accumulator_true_handled, 1310s # NULL, 1310s # test_fdpassing_method_marshal_hello_fd, 1310s # G_TYPE_BOOLEAN, 1310s # 3, 1310s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_call_hello_fd: 1310s # * @proxy: A #TestFDPassingProxy. 1310s # * @arg_greeting: Argument to pass with the method invocation. 1310s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1310s # * 1310s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1310s # */ 1310s # void 1310s # test_fdpassing_call_hello_fd ( 1310s # TestFDPassing *proxy, 1310s # const gchar *arg_greeting, 1310s # GUnixFDList *fd_list, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1310s # "HelloFD", 1310s # g_variant_new ("(s)", 1310s # arg_greeting), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # fd_list, 1310s # cancellable, 1310s # callback, 1310s # user_data); 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_call_hello_fd_finish: 1310s # * @proxy: A #TestFDPassingProxy. 1310s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # test_fdpassing_call_hello_fd_finish ( 1310s # TestFDPassing *proxy, 1310s # gchar **out_response, 1310s # GUnixFDList **out_fd_list, 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(s)", 1310s # out_response); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_call_hello_fd_sync: 1310s # * @proxy: A #TestFDPassingProxy. 1310s # * @arg_greeting: Argument to pass with the method invocation. 1310s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1310s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1310s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL. 1310s # * 1310s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1310s # * 1310s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1310s # * 1310s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1310s # */ 1310s # gboolean 1310s # test_fdpassing_call_hello_fd_sync ( 1310s # TestFDPassing *proxy, 1310s # const gchar *arg_greeting, 1310s # GUnixFDList *fd_list, 1310s # gchar **out_response, 1310s # GUnixFDList **out_fd_list, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GVariant *_ret; 1310s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1310s # "HelloFD", 1310s # g_variant_new ("(s)", 1310s # arg_greeting), 1310s # G_DBUS_CALL_FLAGS_NONE, 1310s # -1, 1310s # fd_list, 1310s # out_fd_list, 1310s # cancellable, 1310s # error); 1310s # if (_ret == NULL) 1310s # goto _out; 1310s # g_variant_get (_ret, 1310s # "(s)", 1310s # out_response); 1310s # g_variant_unref (_ret); 1310s # _out: 1310s # return _ret != NULL; 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_complete_hello_fd: 1310s # * @object: A #TestFDPassing. 1310s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1310s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1310s # * @response: Parameter to return. 1310s # * 1310s # * 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. 1310s # * 1310s # * This method will free @invocation, you cannot use it afterwards. 1310s # */ 1310s # void 1310s # test_fdpassing_complete_hello_fd ( 1310s # TestFDPassing *object G_GNUC_UNUSED, 1310s # GDBusMethodInvocation *invocation, 1310s # GUnixFDList *fd_list, 1310s # const gchar *response) 1310s # { 1310s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1310s # g_variant_new ("(s)", 1310s # response), 1310s # fd_list); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * TestFDPassingProxy: 1310s # * 1310s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * TestFDPassingProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #TestFDPassingProxy. 1310s # */ 1310s # 1310s # struct _TestFDPassingProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (TestFDPassingProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # test_fdpassing_proxy_finalize (GObject *object) 1310s # { 1310s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1310s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1310s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1310s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # test_fdpassing_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with test_fdpassing_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # TestFDPassing * 1310s # test_fdpassing_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return TEST_FDPASSING (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # TestFDPassing * 1310s # test_fdpassing_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return TEST_FDPASSING (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # test_fdpassing_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # TestFDPassing * 1310s # test_fdpassing_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return TEST_FDPASSING (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # TestFDPassing * 1310s # test_fdpassing_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return TEST_FDPASSING (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * TestFDPassingSkeleton: 1310s # * 1310s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * TestFDPassingSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #TestFDPassingSkeleton. 1310s # */ 1310s # 1310s # struct _TestFDPassingSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _test_fdpassing_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _test_fdpassing_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _test_fdpassing_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1310s # { 1310s # _test_fdpassing_skeleton_handle_method_call, 1310s # _test_fdpassing_skeleton_handle_get_property, 1310s # _test_fdpassing_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return test_fdpassing_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # test_fdpassing_skeleton_finalize (GObject *object) 1310s # { 1310s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * test_fdpassing_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1310s # * 1310s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1310s # */ 1310s # TestFDPassing * 1310s # test_fdpassing_skeleton_new (void) 1310s # { 1310s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 15 __main__.TestCodegen.test_generate_rst 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpi0jpzlce 1310s # /tmp/tmpi0jpzlce/tmpue700tdo.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpi0jpzlce/tmpue700tdo.xml', '--generate-rst', 'test'] 1310s # Return code: 0 1310s # Output: 1310s # 1310s # Error: 1310s ok 16 __main__.TestCodegen.test_generate_rst_method 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmp_ol8z65e 1310s # /tmp/tmp_ol8z65e/tmpxy3lwfn4.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_ol8z65e/tmpxy3lwfn4.xml', '--generate-rst', 'test'] 1310s # Return code: 0 1310s # Output: 1310s # 1310s # Error: 1310s ok 17 __main__.TestCodegen.test_generate_rst_property 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpxjf380zs 1310s # /tmp/tmpxjf380zs/tmpcmbxc1u3.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxjf380zs/tmpcmbxc1u3.xml', '--generate-rst', 'test'] 1310s # Return code: 0 1310s # Output: 1310s # 1310s # Error: 1310s ok 18 __main__.TestCodegen.test_generate_rst_signal 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpo62988zm 1310s # /tmp/tmpo62988zm/tmpxeuhaoub.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo62988zm/tmpxeuhaoub.xml', '--generate-rst', 'test'] 1310s # Return code: 0 1310s # Output: 1310s # 1310s # Error: 1310s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmptjrp03fl 1310s # /tmp/tmptjrp03fl/tmp0a1j_ymd.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptjrp03fl/tmp0a1j_ymd.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1310s # GClosure *closure, 1310s # GValue *return_value G_GNUC_UNUSED, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1310s # (void *data1, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv, 1310s # void *data2); 1310s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # 1310s # g_return_if_fail (n_param_values == 19); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # callback (data1, 1310s # g_marshal_value_peek_boolean (param_values + 1), 1310s # g_marshal_value_peek_uchar (param_values + 2), 1310s # g_marshal_value_peek_int (param_values + 3), 1310s # g_marshal_value_peek_uint (param_values + 4), 1310s # g_marshal_value_peek_int (param_values + 5), 1310s # g_marshal_value_peek_uint (param_values + 6), 1310s # g_marshal_value_peek_int64 (param_values + 7), 1310s # g_marshal_value_peek_uint64 (param_values + 8), 1310s # g_marshal_value_peek_double (param_values + 9), 1310s # g_marshal_value_peek_string (param_values + 10), 1310s # g_marshal_value_peek_string (param_values + 11), 1310s # g_marshal_value_peek_string (param_values + 12), 1310s # g_marshal_value_peek_variant (param_values + 13), 1310s # g_marshal_value_peek_string (param_values + 14), 1310s # g_marshal_value_peek_boxed (param_values + 15), 1310s # g_marshal_value_peek_boxed (param_values + 16), 1310s # g_marshal_value_peek_boxed (param_values + 17), 1310s # g_marshal_value_peek_variant (param_values + 18), 1310s # data2); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.SignalingIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectSignalingIface 1310s # * @title: OrgProjectSignalingIface 1310s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SignalWithManyArgs", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "signal-with-many-args" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.SignalingIface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-signaling-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_signaling_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectSignalingIface::signal-with-many-args: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_b: Argument. 1310s # * @arg_an_y: Argument. 1310s # * @arg_an_n: Argument. 1310s # * @arg_an_q: Argument. 1310s # * @arg_an_i: Argument. 1310s # * @arg_an_u: Argument. 1310s # * @arg_an_x: Argument. 1310s # * @arg_an_t: Argument. 1310s # * @arg_an_d: Argument. 1310s # * @arg_an_s: Argument. 1310s # * @arg_an_o: Argument. 1310s # * @arg_an_g: Argument. 1310s # * @arg_an_h: Argument. 1310s # * @arg_an_ay: Argument. 1310s # * @arg_an_as: Argument. 1310s # * @arg_an_ao: Argument. 1310s # * @arg_an_aay: Argument. 1310s # * @arg_an_asv: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1310s # g_signal_new ("signal-with-many-args", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1310s # G_TYPE_NONE, 1310s # 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); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_signal_with_many_args: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_b: Argument to pass with the signal. 1310s # * @arg_an_y: Argument to pass with the signal. 1310s # * @arg_an_n: Argument to pass with the signal. 1310s # * @arg_an_q: Argument to pass with the signal. 1310s # * @arg_an_i: Argument to pass with the signal. 1310s # * @arg_an_u: Argument to pass with the signal. 1310s # * @arg_an_x: Argument to pass with the signal. 1310s # * @arg_an_t: Argument to pass with the signal. 1310s # * @arg_an_d: Argument to pass with the signal. 1310s # * @arg_an_s: Argument to pass with the signal. 1310s # * @arg_an_o: Argument to pass with the signal. 1310s # * @arg_an_g: Argument to pass with the signal. 1310s # * @arg_an_h: Argument to pass with the signal. 1310s # * @arg_an_ay: Argument to pass with the signal. 1310s # * @arg_an_as: Argument to pass with the signal. 1310s # * @arg_an_ao: Argument to pass with the signal. 1310s # * @arg_an_aay: Argument to pass with the signal. 1310s # * @arg_an_asv: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SignalWithManyArgs" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_signal_with_many_args ( 1310s # OrgProjectSignalingIface *object, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxy: 1310s # * 1310s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_signaling_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_signaling_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_signaling_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1310s # { 1310s # _org_project_signaling_iface_skeleton_handle_method_call, 1310s # _org_project_signaling_iface_skeleton_handle_get_property, 1310s # _org_project_signaling_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_signaling_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1310s # OrgProjectSignalingIface *object, 1310s # gboolean arg_an_b, 1310s # guchar arg_an_y, 1310s # gint16 arg_an_n, 1310s # guint16 arg_an_q, 1310s # gint arg_an_i, 1310s # guint arg_an_u, 1310s # gint64 arg_an_x, 1310s # guint64 arg_an_t, 1310s # gdouble arg_an_d, 1310s # const gchar *arg_an_s, 1310s # const gchar *arg_an_o, 1310s # const gchar *arg_an_g, 1310s # GVariant *arg_an_h, 1310s # const gchar *arg_an_ay, 1310s # const gchar *const *arg_an_as, 1310s # const gchar *const *arg_an_ao, 1310s # const gchar *const *arg_an_aay, 1310s # GVariant *arg_an_asv) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1310s # arg_an_b, 1310s # arg_an_y, 1310s # arg_an_n, 1310s # arg_an_q, 1310s # arg_an_i, 1310s # arg_an_u, 1310s # arg_an_x, 1310s # arg_an_t, 1310s # arg_an_d, 1310s # arg_an_s, 1310s # arg_an_o, 1310s # arg_an_g, 1310s # arg_an_h, 1310s # arg_an_ay, 1310s # arg_an_as, 1310s # arg_an_ao, 1310s # arg_an_aay, 1310s # arg_an_asv)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmp6u0yc818 1310s # /tmp/tmp6u0yc818/tmp6da6iyj6.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6u0yc818/tmp6da6iyj6.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_VOID__INT64 ( 1310s # GClosure *closure, 1310s # GValue *return_value G_GNUC_UNUSED, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1310s # (void *data1, 1310s # gint64 arg_an_x, 1310s # void *data2); 1310s # _GDbusCodegenMarshalVoid_Int64Func callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # callback (data1, 1310s # g_marshal_value_peek_int64 (param_values + 1), 1310s # data2); 1310s # } 1310s # 1310s # static void 1310s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1310s # GClosure *closure, 1310s # GValue *return_value G_GNUC_UNUSED, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint G_GNUC_UNUSED, 1310s # void *marshal_data) 1310s # { 1310s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1310s # (void *data1, 1310s # guint64 arg_an_t, 1310s # void *data2); 1310s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1310s # GCClosure *cc = (GCClosure*) closure; 1310s # void *data1, *data2; 1310s # 1310s # g_return_if_fail (n_param_values == 2); 1310s # 1310s # if (G_CCLOSURE_SWAP_DATA (closure)) 1310s # { 1310s # data1 = closure->data; 1310s # data2 = g_value_peek_pointer (param_values + 0); 1310s # } 1310s # else 1310s # { 1310s # data1 = g_value_peek_pointer (param_values + 0); 1310s # data2 = closure->data; 1310s # } 1310s # 1310s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1310s # (marshal_data ? marshal_data : cc->callback); 1310s # 1310s # callback (data1, 1310s # g_marshal_value_peek_uint64 (param_values + 1), 1310s # data2); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.SignalingIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectSignalingIface 1310s # * @title: OrgProjectSignalingIface 1310s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1310s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "NoArgSignal", 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "no-arg-signal" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_b", 1310s # (gchar *) "b", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalB", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-b" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_y", 1310s # (gchar *) "y", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalY", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-y" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_n", 1310s # (gchar *) "n", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalN", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-n" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_q", 1310s # (gchar *) "q", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalQ", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-q" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_i", 1310s # (gchar *) "i", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalI", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-i" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_u", 1310s # (gchar *) "u", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalU", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-u" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_x", 1310s # (gchar *) "x", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalX", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-x" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_t", 1310s # (gchar *) "t", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalT", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-t" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_d", 1310s # (gchar *) "d", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalD", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-d" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_s", 1310s # (gchar *) "s", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalS", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-s" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_o", 1310s # (gchar *) "o", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalO", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-o" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_g", 1310s # (gchar *) "g", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalG", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-g" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_h", 1310s # (gchar *) "h", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalH", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-h" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ay", 1310s # (gchar *) "ay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalAY", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-ay" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_as", 1310s # (gchar *) "as", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalAS", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-as" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_ao", 1310s # (gchar *) "ao", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalAO", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-ao" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_aay", 1310s # (gchar *) "aay", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalAAY", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-aay" 1310s # }; 1310s # 1310s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "an_asv", 1310s # (gchar *) "a{sv}", 1310s # NULL 1310s # }, 1310s # FALSE 1310s # }; 1310s # 1310s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SingleArgSignalASV", 1310s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1310s # NULL 1310s # }, 1310s # "single-arg-signal-asv" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1310s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.SignalingIface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-signaling-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_signaling_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VOID (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__UCHAR (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__INT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__UINT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__INT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__UINT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__DOUBLE (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__STRING (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__STRING (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__STRING (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VARIANT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__STRING (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__BOXED (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__BOXED (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__BOXED (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VARIANT (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1310s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1310s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1310s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1310s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1310s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1310s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1310s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1310s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1310s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1310s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1310s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1310s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1310s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1310s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1310s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1310s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1310s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1310s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectSignalingIface::no-arg-signal: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1310s # g_signal_new ("no-arg-signal", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1310s # G_TYPE_NONE, 1310s # 0); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-b: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_b: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1310s # g_signal_new ("single-arg-signal-b", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_BOOLEAN); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-y: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_y: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1310s # g_signal_new ("single-arg-signal-y", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_UCHAR); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-n: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_n: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1310s # g_signal_new ("single-arg-signal-n", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_INT); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-q: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_q: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1310s # g_signal_new ("single-arg-signal-q", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_UINT); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-i: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_i: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1310s # g_signal_new ("single-arg-signal-i", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_INT); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-u: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_u: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1310s # g_signal_new ("single-arg-signal-u", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_UINT); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-x: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_x: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1310s # g_signal_new ("single-arg-signal-x", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_INT64); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-t: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_t: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1310s # g_signal_new ("single-arg-signal-t", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_UINT64); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-d: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_d: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1310s # g_signal_new ("single-arg-signal-d", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_DOUBLE); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-s: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_s: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1310s # g_signal_new ("single-arg-signal-s", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRING); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-o: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_o: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1310s # g_signal_new ("single-arg-signal-o", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRING); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-g: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_g: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1310s # g_signal_new ("single-arg-signal-g", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRING); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-h: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_h: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1310s # g_signal_new ("single-arg-signal-h", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_VARIANT); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-ay: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_ay: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1310s # g_signal_new ("single-arg-signal-ay", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRING); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-as: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_as: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1310s # g_signal_new ("single-arg-signal-as", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRV); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-ao: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_ao: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1310s # g_signal_new ("single-arg-signal-ao", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRV); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-aay: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_aay: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1310s # g_signal_new ("single-arg-signal-aay", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_STRV); 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface::single-arg-signal-asv: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_asv: Argument. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1310s # g_signal_new ("single-arg-signal-asv", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1310s # G_TYPE_NONE, 1310s # 1, G_TYPE_VARIANT); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_no_arg_signal: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * 1310s # * Emits the "NoArgSignal" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_no_arg_signal ( 1310s # OrgProjectSignalingIface *object) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_b: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_b: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalB" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_b ( 1310s # OrgProjectSignalingIface *object, 1310s # gboolean arg_an_b) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_y: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_y: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalY" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_y ( 1310s # OrgProjectSignalingIface *object, 1310s # guchar arg_an_y) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_n: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_n: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalN" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_n ( 1310s # OrgProjectSignalingIface *object, 1310s # gint16 arg_an_n) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_q: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_q: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalQ" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_q ( 1310s # OrgProjectSignalingIface *object, 1310s # guint16 arg_an_q) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_i: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_i: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalI" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_i ( 1310s # OrgProjectSignalingIface *object, 1310s # gint arg_an_i) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_u: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_u: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalU" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_u ( 1310s # OrgProjectSignalingIface *object, 1310s # guint arg_an_u) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_x: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_x: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalX" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_x ( 1310s # OrgProjectSignalingIface *object, 1310s # gint64 arg_an_x) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_t: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_t: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalT" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_t ( 1310s # OrgProjectSignalingIface *object, 1310s # guint64 arg_an_t) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_d: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_d: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalD" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_d ( 1310s # OrgProjectSignalingIface *object, 1310s # gdouble arg_an_d) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_s: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_s: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalS" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_s ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_s) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_o: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_o: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalO" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_o ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_o) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_g: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_g: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalG" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_g ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_g) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_h: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_h: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalH" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_h ( 1310s # OrgProjectSignalingIface *object, 1310s # GVariant *arg_an_h) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_ay: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalAY" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_ay) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_as: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_as: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalAS" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_as ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_as) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_ao: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalAO" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_ao) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_aay: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_aay) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * @arg_an_asv: Argument to pass with the signal. 1310s # * 1310s # * Emits the "SingleArgSignalASV" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1310s # OrgProjectSignalingIface *object, 1310s # GVariant *arg_an_asv) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxy: 1310s # * 1310s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_signaling_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_signaling_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_signaling_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1310s # { 1310s # _org_project_signaling_iface_skeleton_handle_method_call, 1310s # _org_project_signaling_iface_skeleton_handle_get_property, 1310s # _org_project_signaling_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_signaling_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1310s # OrgProjectSignalingIface *object) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1310s # OrgProjectSignalingIface *object, 1310s # gboolean arg_an_b) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1310s # arg_an_b)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1310s # OrgProjectSignalingIface *object, 1310s # guchar arg_an_y) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1310s # arg_an_y)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1310s # OrgProjectSignalingIface *object, 1310s # gint16 arg_an_n) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1310s # arg_an_n)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1310s # OrgProjectSignalingIface *object, 1310s # guint16 arg_an_q) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1310s # arg_an_q)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1310s # OrgProjectSignalingIface *object, 1310s # gint arg_an_i) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1310s # arg_an_i)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1310s # OrgProjectSignalingIface *object, 1310s # guint arg_an_u) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1310s # arg_an_u)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1310s # OrgProjectSignalingIface *object, 1310s # gint64 arg_an_x) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1310s # arg_an_x)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1310s # OrgProjectSignalingIface *object, 1310s # guint64 arg_an_t) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1310s # arg_an_t)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1310s # OrgProjectSignalingIface *object, 1310s # gdouble arg_an_d) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1310s # arg_an_d)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_s) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1310s # arg_an_s)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_o) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1310s # arg_an_o)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_g) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1310s # arg_an_g)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1310s # OrgProjectSignalingIface *object, 1310s # GVariant *arg_an_h) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1310s # arg_an_h)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *arg_an_ay) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1310s # arg_an_ay)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_as) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1310s # arg_an_as)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_ao) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1310s # arg_an_ao)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1310s # OrgProjectSignalingIface *object, 1310s # const gchar *const *arg_an_aay) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1310s # arg_an_aay)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1310s # OrgProjectSignalingIface *object, 1310s # GVariant *arg_an_asv) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1310s # arg_an_asv)); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1310s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1310s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1310s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1310s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1310s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1310s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1310s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1310s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1310s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1310s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1310s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1310s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1310s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1310s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1310s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1310s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1310s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1310s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpv23mn1nl 1310s # /tmp/tmpv23mn1nl/tmp_r5l4x7q.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv23mn1nl/tmp_r5l4x7q.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.UsefulInterface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectUsefulInterface 1310s # * @title: OrgProjectUsefulInterface 1310s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SimpleSignal", 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "simple-signal" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.UsefulInterface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-useful-interface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_useful_interface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_useful_interface_signal_marshal_simple_signal ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VOID (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1310s # */ 1310s # 1310s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectUsefulInterface::simple-signal: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1310s # g_signal_new ("simple-signal", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1310s # NULL, 1310s # NULL, 1310s # org_project_useful_interface_signal_marshal_simple_signal, 1310s # G_TYPE_NONE, 1310s # 0); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_emit_simple_signal: 1310s # * @object: A #OrgProjectUsefulInterface. 1310s # * 1310s # * Emits the "SimpleSignal" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_useful_interface_emit_simple_signal ( 1310s # OrgProjectUsefulInterface *object) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxy: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1310s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1310s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_useful_interface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # g_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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeleton: 1310s # * 1310s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectUsefulInterfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_useful_interface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_useful_interface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_useful_interface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1310s # { 1310s # _org_project_useful_interface_skeleton_handle_method_call, 1310s # _org_project_useful_interface_skeleton_handle_get_property, 1310s # _org_project_useful_interface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_useful_interface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_useful_interface_on_signal_simple_signal ( 1310s # OrgProjectUsefulInterface *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_useful_interface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1310s # { 1310s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1310s # } 1310s # 1310s # /** 1310s # * org_project_useful_interface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectUsefulInterface * 1310s # org_project_useful_interface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.OtherIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectOtherIface 1310s # * @title: OrgProjectOtherIface 1310s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.OtherIface ---- */ 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SimpleSignal", 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "simple-signal" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.OtherIface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-other-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_other_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_other_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_other_iface_signal_marshal_simple_signal ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VOID (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectOtherIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.OtherIface. 1310s # */ 1310s # 1310s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectOtherIface::simple-signal: 1310s # * @object: A #OrgProjectOtherIface. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1310s # g_signal_new ("simple-signal", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1310s # NULL, 1310s # NULL, 1310s # org_project_other_iface_signal_marshal_simple_signal, 1310s # G_TYPE_NONE, 1310s # 0); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_emit_simple_signal: 1310s # * @object: A #OrgProjectOtherIface. 1310s # * 1310s # * Emits the "SimpleSignal" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_other_iface_emit_simple_signal ( 1310s # OrgProjectOtherIface *object) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherIfaceProxy: 1310s # * 1310s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherIface * 1310s # org_project_other_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherIface * 1310s # org_project_other_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherIface * 1310s # org_project_other_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherIface * 1310s # org_project_other_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_other_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_other_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_other_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1310s # { 1310s # _org_project_other_iface_skeleton_handle_method_call, 1310s # _org_project_other_iface_skeleton_handle_get_property, 1310s # _org_project_other_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_other_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_other_iface_on_signal_simple_signal ( 1310s # OrgProjectOtherIface *object) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1310s # { 1310s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectOtherIface * 1310s # org_project_other_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1310s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1310s # gdbus-codegen: /usr/bin/gdbus-codegen 1310s # tmpdir: /tmp/tmpg199lyxl 1310s # /tmp/tmpg199lyxl/tmp_fiwfh27.xml: 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # 1310s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpg199lyxl/tmp_fiwfh27.xml', '--output', '-', '--body'] 1310s # Return code: 0 1310s # Output: 1310s # /* 1310s # * This file is generated by gdbus-codegen, do not modify it. 1310s # * 1310s # * The license of this code is the same as for the D-Bus interface description 1310s # * it was derived from. Note that it links to GLib, so must comply with the 1310s # * LGPL linking clauses. 1310s # */ 1310s # 1310s # #ifdef HAVE_CONFIG_H 1310s # # include "config.h" 1310s # #endif 1310s # 1310s # #include 1310s # #ifdef G_OS_UNIX 1310s # # include 1310s # #endif 1310s # 1310s # #ifdef G_ENABLE_DEBUG 1310s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1310s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1310s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1310s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1310s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1310s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1310s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1310s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1310s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1310s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1310s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1310s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1310s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1310s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1310s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1310s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1310s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1310s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1310s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1310s # #else /* !G_ENABLE_DEBUG */ 1310s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1310s # * Do not access GValues directly in your code. Instead, use the 1310s # * g_value_get_*() functions 1310s # */ 1310s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1310s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1310s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1310s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1310s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1310s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1310s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1310s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1310s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1310s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1310s # #endif /* !G_ENABLE_DEBUG */ 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusArgInfo parent_struct; 1310s # gboolean use_gvariant; 1310s # } _ExtendedGDBusArgInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusMethodInfo parent_struct; 1310s # const gchar *signal_name; 1310s # gboolean pass_fdlist; 1310s # } _ExtendedGDBusMethodInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusSignalInfo parent_struct; 1310s # const gchar *signal_name; 1310s # } _ExtendedGDBusSignalInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusPropertyInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # guint use_gvariant : 1; 1310s # guint emits_changed_signal : 1; 1310s # } _ExtendedGDBusPropertyInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # GDBusInterfaceInfo parent_struct; 1310s # const gchar *hyphen_name; 1310s # } _ExtendedGDBusInterfaceInfo; 1310s # 1310s # typedef struct 1310s # { 1310s # const _ExtendedGDBusPropertyInfo *info; 1310s # guint prop_id; 1310s # GValue orig_value; /* the value before the change */ 1310s # } ChangedProperty; 1310s # 1310s # static void 1310s # _changed_property_free (ChangedProperty *data) 1310s # { 1310s # g_value_unset (&data->orig_value); 1310s # g_free (data); 1310s # } 1310s # 1310s # static gboolean 1310s # _g_strv_equal0 (gchar **a, gchar **b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # guint n; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # if (g_strv_length (a) != g_strv_length (b)) 1310s # goto out; 1310s # for (n = 0; a[n] != NULL; n++) 1310s # if (g_strcmp0 (a[n], b[n]) != 0) 1310s # goto out; 1310s # ret = TRUE; 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _g_variant_equal0 (GVariant *a, GVariant *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # if (a == NULL && b == NULL) 1310s # { 1310s # ret = TRUE; 1310s # goto out; 1310s # } 1310s # if (a == NULL || b == NULL) 1310s # goto out; 1310s # ret = g_variant_equal (a, b); 1310s # out: 1310s # return ret; 1310s # } 1310s # 1310s # G_GNUC_UNUSED static gboolean 1310s # _g_value_equal (const GValue *a, const GValue *b) 1310s # { 1310s # gboolean ret = FALSE; 1310s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1310s # switch (G_VALUE_TYPE (a)) 1310s # { 1310s # case G_TYPE_BOOLEAN: 1310s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1310s # break; 1310s # case G_TYPE_UCHAR: 1310s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1310s # break; 1310s # case G_TYPE_INT: 1310s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1310s # break; 1310s # case G_TYPE_UINT: 1310s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1310s # break; 1310s # case G_TYPE_INT64: 1310s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1310s # break; 1310s # case G_TYPE_UINT64: 1310s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1310s # break; 1310s # case G_TYPE_DOUBLE: 1310s # { 1310s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1310s # gdouble da = g_value_get_double (a); 1310s # gdouble db = g_value_get_double (b); 1310s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1310s # } 1310s # break; 1310s # case G_TYPE_STRING: 1310s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1310s # break; 1310s # case G_TYPE_VARIANT: 1310s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1310s # break; 1310s # default: 1310s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1310s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1310s # else 1310s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1310s # break; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.SignalingIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectSignalingIface 1310s # * @title: OrgProjectSignalingIface 1310s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SimpleSignal", 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "simple-signal" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.SignalingIface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-signaling-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_signaling_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_signaling_iface_signal_marshal_simple_signal ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VOID (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectSignalingIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1310s # */ 1310s # 1310s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectSignalingIface::simple-signal: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1310s # g_signal_new ("simple-signal", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1310s # NULL, 1310s # NULL, 1310s # org_project_signaling_iface_signal_marshal_simple_signal, 1310s # G_TYPE_NONE, 1310s # 0); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_emit_simple_signal: 1310s # * @object: A #OrgProjectSignalingIface. 1310s # * 1310s # * Emits the "SimpleSignal" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_emit_simple_signal ( 1310s # OrgProjectSignalingIface *object) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxy: 1310s # * 1310s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_signaling_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectSignalingIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_signaling_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_signaling_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_signaling_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1310s # { 1310s # _org_project_signaling_iface_skeleton_handle_method_call, 1310s # _org_project_signaling_iface_skeleton_handle_get_property, 1310s # _org_project_signaling_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_signaling_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_signaling_iface_on_signal_simple_signal ( 1310s # OrgProjectSignalingIface *object) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1310s # { 1310s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1310s # } 1310s # 1310s # /** 1310s # * org_project_signaling_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectSignalingIface * 1310s # org_project_signaling_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ 1310s # * Code for interface org.project.OtherSignalingIface 1310s # * ------------------------------------------------------------------------ 1310s # */ 1310s # 1310s # /** 1310s # * SECTION:OrgProjectOtherSignalingIface 1310s # * @title: OrgProjectOtherSignalingIface 1310s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1310s # * 1310s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1310s # */ 1310s # 1310s # enum 1310s # { 1310s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1310s # }; 1310s # 1310s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1310s # 1310s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1310s # 1310s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "SimpleSignal", 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "simple-signal" 1310s # }; 1310s # 1310s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1310s # { 1310s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1310s # NULL 1310s # }; 1310s # 1310s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1310s # { 1310s # { 1310s # -1, 1310s # (gchar *) "org.project.OtherSignalingIface", 1310s # NULL, 1310s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1310s # NULL, 1310s # NULL 1310s # }, 1310s # "org-project-other-signaling-iface", 1310s # }; 1310s # 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_interface_info: 1310s # * 1310s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1310s # * 1310s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1310s # */ 1310s # GDBusInterfaceInfo * 1310s # org_project_other_signaling_iface_interface_info (void) 1310s # { 1310s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_override_properties: 1310s # * @klass: The class structure for a #GObject derived class. 1310s # * @property_id_begin: The property id to assign to the first overridden property. 1310s # * 1310s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1310s # * The properties are overridden in the order they are defined. 1310s # * 1310s # * Returns: The last property id. 1310s # */ 1310s # guint 1310s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1310s # { 1310s # return property_id_begin - 1; 1310s # } 1310s # 1310s # 1310s # inline static void 1310s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1310s # GClosure *closure, 1310s # GValue *return_value, 1310s # unsigned int n_param_values, 1310s # const GValue *param_values, 1310s # void *invocation_hint, 1310s # void *marshal_data) 1310s # { 1310s # g_cclosure_marshal_VOID__VOID (closure, 1310s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1310s # } 1310s # 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIface: 1310s # * 1310s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIfaceIface: 1310s # * @parent_iface: The parent interface. 1310s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1310s # * 1310s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1310s # */ 1310s # 1310s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1310s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1310s # { 1310s # /* GObject signals for received D-Bus signals: */ 1310s # /** 1310s # * OrgProjectOtherSignalingIface::simple-signal: 1310s # * @object: A #OrgProjectOtherSignalingIface. 1310s # * 1310s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1310s # * 1310s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1310s # */ 1310s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1310s # g_signal_new ("simple-signal", 1310s # G_TYPE_FROM_INTERFACE (iface), 1310s # G_SIGNAL_RUN_LAST, 1310s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1310s # NULL, 1310s # NULL, 1310s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1310s # G_TYPE_NONE, 1310s # 0); 1310s # 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_emit_simple_signal: 1310s # * @object: A #OrgProjectOtherSignalingIface. 1310s # * 1310s # * Emits the "SimpleSignal" D-Bus signal. 1310s # */ 1310s # void 1310s # org_project_other_signaling_iface_emit_simple_signal ( 1310s # OrgProjectOtherSignalingIface *object) 1310s # { 1310s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1310s # } 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIfaceProxy: 1310s # * 1310s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIfaceProxyClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1310s # { 1310s # GData *qdata; 1310s # }; 1310s # 1310s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1310s # g_datalist_clear (&proxy->priv->qdata); 1310s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1310s # guint prop_id G_GNUC_UNUSED, 1310s # const GValue *value G_GNUC_UNUSED, 1310s # GParamSpec *pspec G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1310s # const gchar *sender_name G_GNUC_UNUSED, 1310s # const gchar *signal_name, 1310s # GVariant *parameters) 1310s # { 1310s # _ExtendedGDBusSignalInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # gsize n; 1310s # guint signal_id; 1310s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1310s # if (info == NULL) 1310s # return; 1310s # num_params = g_variant_n_children (parameters); 1310s # paramv = g_new0 (GValue, num_params + 1); 1310s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[0], proxy); 1310s # g_variant_iter_init (&iter, parameters); 1310s # n = 1; 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1310s # g_signal_emitv (paramv, signal_id, 0, NULL); 1310s # for (n = 0; n < num_params + 1; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1310s # GVariant *changed_properties, 1310s # const gchar *const *invalidated_properties) 1310s # { 1310s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1310s # guint n; 1310s # const gchar *key; 1310s # GVariantIter *iter; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # g_variant_get (changed_properties, "a{sv}", &iter); 1310s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1310s # g_datalist_remove_data (&proxy->priv->qdata, key); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # g_variant_iter_free (iter); 1310s # for (n = 0; invalidated_properties[n] != NULL; n++) 1310s # { 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1310s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1310s # if (info != NULL) 1310s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1310s # } 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1310s # #else 1310s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1310s # #endif 1310s # 1310s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusProxyClass *proxy_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1310s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1310s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1310s # 1310s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1310s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1310s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_signaling_iface_proxy_new ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherSignalingIface * 1310s # org_project_other_signaling_iface_proxy_new_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new_sync: 1310s # * @connection: A #GDBusConnection. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherSignalingIface * 1310s # org_project_other_signaling_iface_proxy_new_sync ( 1310s # GDBusConnection *connection, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new_for_bus: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1310s # * @user_data: User data to pass to @callback. 1310s # * 1310s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1310s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1310s # * 1310s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1310s # */ 1310s # void 1310s # org_project_other_signaling_iface_proxy_new_for_bus ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GAsyncReadyCallback callback, 1310s # gpointer user_data) 1310s # { 1310s # 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); 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1310s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherSignalingIface * 1310s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1310s # GAsyncResult *res, 1310s # GError **error) 1310s # { 1310s # GObject *ret; 1310s # GObject *source_object; 1310s # source_object = g_async_result_get_source_object (res); 1310s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1310s # g_object_unref (source_object); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1310s # * @bus_type: A #GBusType. 1310s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1310s # * @name: A bus name (well-known or unique). 1310s # * @object_path: An object path. 1310s # * @cancellable: (nullable): A #GCancellable or %NULL. 1310s # * @error: Return location for error or %NULL 1310s # * 1310s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1310s # * 1310s # * The calling thread is blocked until a reply is received. 1310s # * 1310s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1310s # */ 1310s # OrgProjectOtherSignalingIface * 1310s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1310s # GBusType bus_type, 1310s # GDBusProxyFlags flags, 1310s # const gchar *name, 1310s # const gchar *object_path, 1310s # GCancellable *cancellable, 1310s # GError **error) 1310s # { 1310s # GInitable *ret; 1310s # 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); 1310s # if (ret != NULL) 1310s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1310s # else 1310s # return NULL; 1310s # } 1310s # 1310s # 1310s # /* ------------------------------------------------------------------------ */ 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIfaceSkeleton: 1310s # * 1310s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1310s # */ 1310s # 1310s # /** 1310s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1310s # * @parent_class: The parent class. 1310s # * 1310s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1310s # */ 1310s # 1310s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1310s # { 1310s # GValue *properties; 1310s # GList *changed_properties; 1310s # GSource *changed_properties_idle_source; 1310s # GMainContext *context; 1310s # GMutex lock; 1310s # }; 1310s # 1310s # static void 1310s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name, 1310s # const gchar *method_name, 1310s # GVariant *parameters, 1310s # GDBusMethodInvocation *invocation, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1310s # _ExtendedGDBusMethodInfo *info; 1310s # GVariantIter iter; 1310s # GVariant *child; 1310s # GValue *paramv; 1310s # gsize num_params; 1310s # guint num_extra; 1310s # gsize n; 1310s # guint signal_id; 1310s # GValue return_value = G_VALUE_INIT; 1310s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1310s # g_assert (info != NULL); 1310s # num_params = g_variant_n_children (parameters); 1310s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1310s # n = 0; 1310s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1310s # g_value_set_object (¶mv[n++], skeleton); 1310s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1310s # g_value_set_object (¶mv[n++], invocation); 1310s # if (info->pass_fdlist) 1310s # { 1310s # #ifdef G_OS_UNIX 1310s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1310s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1310s # #else 1310s # g_assert_not_reached (); 1310s # #endif 1310s # } 1310s # g_variant_iter_init (&iter, parameters); 1310s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1310s # { 1310s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1310s # if (arg_info->use_gvariant) 1310s # { 1310s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1310s # g_value_set_variant (¶mv[n], child); 1310s # n++; 1310s # } 1310s # else 1310s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1310s # g_variant_unref (child); 1310s # } 1310s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1310s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1310s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1310s # if (!g_value_get_boolean (&return_value)) 1310s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1310s # g_value_unset (&return_value); 1310s # for (n = 0; n < num_params + num_extra; n++) 1310s # g_value_unset (¶mv[n]); 1310s # g_free (paramv); 1310s # } 1310s # 1310s # static GVariant * 1310s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # GVariant *ret; 1310s # ret = NULL; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # g_value_init (&value, pspec->value_type); 1310s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1310s # g_value_unset (&value); 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static gboolean 1310s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1310s # GDBusConnection *connection G_GNUC_UNUSED, 1310s # const gchar *sender G_GNUC_UNUSED, 1310s # const gchar *object_path G_GNUC_UNUSED, 1310s # const gchar *interface_name G_GNUC_UNUSED, 1310s # const gchar *property_name, 1310s # GVariant *variant, 1310s # GError **error, 1310s # gpointer user_data) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1310s # GValue value = G_VALUE_INIT; 1310s # GParamSpec *pspec; 1310s # _ExtendedGDBusPropertyInfo *info; 1310s # gboolean ret; 1310s # ret = FALSE; 1310s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1310s # g_assert (info != NULL); 1310s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1310s # if (pspec == NULL) 1310s # { 1310s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1310s # } 1310s # else 1310s # { 1310s # if (info->use_gvariant) 1310s # g_value_set_variant (&value, variant); 1310s # else 1310s # g_dbus_gvariant_to_gvalue (variant, &value); 1310s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1310s # g_value_unset (&value); 1310s # ret = TRUE; 1310s # } 1310s # return ret; 1310s # } 1310s # 1310s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1310s # { 1310s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1310s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1310s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1310s # {NULL} 1310s # }; 1310s # 1310s # static GDBusInterfaceInfo * 1310s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return org_project_other_signaling_iface_interface_info (); 1310s # } 1310s # 1310s # static GDBusInterfaceVTable * 1310s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1310s # { 1310s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1310s # } 1310s # 1310s # static GVariant * 1310s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1310s # 1310s # GVariantBuilder builder; 1310s # guint n; 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1310s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #else 1310s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1310s # #endif 1310s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1310s # goto out; 1310s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1310s # { 1310s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1310s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1310s # { 1310s # GVariant *value; 1310s # 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); 1310s # if (value != NULL) 1310s # { 1310s # g_variant_take_ref (value); 1310s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1310s # g_variant_unref (value); 1310s # } 1310s # } 1310s # } 1310s # out: 1310s # return g_variant_builder_end (&builder); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1310s # { 1310s # } 1310s # 1310s # static void 1310s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1310s # OrgProjectOtherSignalingIface *object) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1310s # 1310s # GList *connections, *l; 1310s # GVariant *signal_variant; 1310s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1310s # 1310s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1310s # for (l = connections; l != NULL; l = l->next) 1310s # { 1310s # GDBusConnection *connection = l->data; 1310s # g_dbus_connection_emit_signal (connection, 1310s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1310s # signal_variant, NULL); 1310s # } 1310s # g_variant_unref (signal_variant); 1310s # g_list_free_full (connections, g_object_unref); 1310s # } 1310s # 1310s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #else 1310s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1310s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1310s # 1310s # #endif 1310s # static void 1310s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1310s # { 1310s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1310s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1310s # if (skeleton->priv->changed_properties_idle_source != NULL) 1310s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1310s # g_main_context_unref (skeleton->priv->context); 1310s # g_mutex_clear (&skeleton->priv->lock); 1310s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1310s # { 1310s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1310s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1310s # #else 1310s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1310s # #endif 1310s # 1310s # g_mutex_init (&skeleton->priv->lock); 1310s # skeleton->priv->context = g_main_context_ref_thread_default (); 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1310s # { 1310s # GObjectClass *gobject_class; 1310s # GDBusInterfaceSkeletonClass *skeleton_class; 1310s # 1310s # gobject_class = G_OBJECT_CLASS (klass); 1310s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1310s # 1310s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1310s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1310s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1310s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1310s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1310s # 1310s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1310s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1310s # #endif 1310s # } 1310s # 1310s # static void 1310s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1310s # { 1310s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1310s # } 1310s # 1310s # /** 1310s # * org_project_other_signaling_iface_skeleton_new: 1310s # * 1310s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1310s # * 1310s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1310s # */ 1310s # OrgProjectOtherSignalingIface * 1310s # org_project_other_signaling_iface_skeleton_new (void) 1310s # { 1310s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1310s # } 1310s # Error: 1311s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpxsgydn5v 1311s # /tmp/tmpxsgydn5v/tmpu87g9sc2.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpu87g9sc2.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_b", 1311s # (gchar *) "b", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalB", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-b" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-b: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_b: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1311s # g_signal_new ("single-arg-signal-b", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_BOOLEAN); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_b: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_b: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalB" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_b ( 1311s # OrgProjectSignalingIface *object, 1311s # gboolean arg_arg_b) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1311s # OrgProjectSignalingIface *object, 1311s # gboolean arg_arg_b) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1311s # arg_arg_b)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpbcok_xu6.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpbcok_xu6.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_y", 1311s # (gchar *) "y", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalY", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-y" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__UCHAR (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-y: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_y: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1311s # g_signal_new ("single-arg-signal-y", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_UCHAR); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_y: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_y: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalY" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_y ( 1311s # OrgProjectSignalingIface *object, 1311s # guchar arg_arg_y) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1311s # OrgProjectSignalingIface *object, 1311s # guchar arg_arg_y) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1311s # arg_arg_y)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpdu2sa44m.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpdu2sa44m.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_n", 1311s # (gchar *) "n", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalN", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-n" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__INT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-n: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_n: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1311s # g_signal_new ("single-arg-signal-n", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_INT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_n: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_n: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalN" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_n ( 1311s # OrgProjectSignalingIface *object, 1311s # gint16 arg_arg_n) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1311s # OrgProjectSignalingIface *object, 1311s # gint16 arg_arg_n) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1311s # arg_arg_n)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpivjtdmz8.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpivjtdmz8.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_q", 1311s # (gchar *) "q", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalQ", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-q" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__UINT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-q: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_q: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1311s # g_signal_new ("single-arg-signal-q", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_UINT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_q: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_q: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalQ" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_q ( 1311s # OrgProjectSignalingIface *object, 1311s # guint16 arg_arg_q) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1311s # OrgProjectSignalingIface *object, 1311s # guint16 arg_arg_q) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1311s # arg_arg_q)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpstdz26uk.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpstdz26uk.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_i", 1311s # (gchar *) "i", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalI", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-i" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__INT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-i: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_i: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1311s # g_signal_new ("single-arg-signal-i", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_INT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_i: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_i: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalI" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_i ( 1311s # OrgProjectSignalingIface *object, 1311s # gint arg_arg_i) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1311s # OrgProjectSignalingIface *object, 1311s # gint arg_arg_i) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1311s # arg_arg_i)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmphain4irv.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmphain4irv.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_u", 1311s # (gchar *) "u", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalU", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-u" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__UINT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-u: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_u: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1311s # g_signal_new ("single-arg-signal-u", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_UINT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_u: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_u: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalU" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_u ( 1311s # OrgProjectSignalingIface *object, 1311s # guint arg_arg_u) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1311s # OrgProjectSignalingIface *object, 1311s # guint arg_arg_u) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1311s # arg_arg_u)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmphbkgxvou.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmphbkgxvou.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static void 1311s # _g_dbus_codegen_marshal_VOID__INT64 ( 1311s # GClosure *closure, 1311s # GValue *return_value G_GNUC_UNUSED, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint G_GNUC_UNUSED, 1311s # void *marshal_data) 1311s # { 1311s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1311s # (void *data1, 1311s # gint64 arg_arg_x, 1311s # void *data2); 1311s # _GDbusCodegenMarshalVoid_Int64Func callback; 1311s # GCClosure *cc = (GCClosure*) closure; 1311s # void *data1, *data2; 1311s # 1311s # g_return_if_fail (n_param_values == 2); 1311s # 1311s # if (G_CCLOSURE_SWAP_DATA (closure)) 1311s # { 1311s # data1 = closure->data; 1311s # data2 = g_value_peek_pointer (param_values + 0); 1311s # } 1311s # else 1311s # { 1311s # data1 = g_value_peek_pointer (param_values + 0); 1311s # data2 = closure->data; 1311s # } 1311s # 1311s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1311s # (marshal_data ? marshal_data : cc->callback); 1311s # 1311s # callback (data1, 1311s # g_marshal_value_peek_int64 (param_values + 1), 1311s # data2); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_x", 1311s # (gchar *) "x", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalX", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-x" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-x: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_x: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1311s # g_signal_new ("single-arg-signal-x", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_INT64); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_x: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_x: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalX" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_x ( 1311s # OrgProjectSignalingIface *object, 1311s # gint64 arg_arg_x) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1311s # OrgProjectSignalingIface *object, 1311s # gint64 arg_arg_x) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1311s # arg_arg_x)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp9v2b6jww.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp9v2b6jww.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static void 1311s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1311s # GClosure *closure, 1311s # GValue *return_value G_GNUC_UNUSED, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint G_GNUC_UNUSED, 1311s # void *marshal_data) 1311s # { 1311s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1311s # (void *data1, 1311s # guint64 arg_arg_t, 1311s # void *data2); 1311s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1311s # GCClosure *cc = (GCClosure*) closure; 1311s # void *data1, *data2; 1311s # 1311s # g_return_if_fail (n_param_values == 2); 1311s # 1311s # if (G_CCLOSURE_SWAP_DATA (closure)) 1311s # { 1311s # data1 = closure->data; 1311s # data2 = g_value_peek_pointer (param_values + 0); 1311s # } 1311s # else 1311s # { 1311s # data1 = g_value_peek_pointer (param_values + 0); 1311s # data2 = closure->data; 1311s # } 1311s # 1311s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1311s # (marshal_data ? marshal_data : cc->callback); 1311s # 1311s # callback (data1, 1311s # g_marshal_value_peek_uint64 (param_values + 1), 1311s # data2); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_t", 1311s # (gchar *) "t", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalT", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-t" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-t: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_t: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1311s # g_signal_new ("single-arg-signal-t", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_UINT64); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_t: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_t: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalT" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_t ( 1311s # OrgProjectSignalingIface *object, 1311s # guint64 arg_arg_t) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1311s # OrgProjectSignalingIface *object, 1311s # guint64 arg_arg_t) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1311s # arg_arg_t)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp2ljtsg79.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp2ljtsg79.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_d", 1311s # (gchar *) "d", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalD", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-d" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__DOUBLE (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-d: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_d: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1311s # g_signal_new ("single-arg-signal-d", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_DOUBLE); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_d: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_d: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalD" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_d ( 1311s # OrgProjectSignalingIface *object, 1311s # gdouble arg_arg_d) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1311s # OrgProjectSignalingIface *object, 1311s # gdouble arg_arg_d) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1311s # arg_arg_d)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpin2dvpfr.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpin2dvpfr.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_s", 1311s # (gchar *) "s", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalS", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-s" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__STRING (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-s: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_s: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1311s # g_signal_new ("single-arg-signal-s", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRING); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_s: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_s: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalS" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_s ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_s) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_s) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1311s # arg_arg_s)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpbmjqf4m_.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpbmjqf4m_.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_o", 1311s # (gchar *) "o", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalO", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-o" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__STRING (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-o: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_o: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1311s # g_signal_new ("single-arg-signal-o", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRING); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_o: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_o: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalO" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_o ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_o) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_o) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1311s # arg_arg_o)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmptrvfwx72.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmptrvfwx72.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_g", 1311s # (gchar *) "g", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalG", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-g" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__STRING (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-g: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_g: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1311s # g_signal_new ("single-arg-signal-g", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRING); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_g: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_g: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalG" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_g ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_g) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_g) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1311s # arg_arg_g)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpq5crg11u.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpq5crg11u.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_h", 1311s # (gchar *) "h", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalH", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-h" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VARIANT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-h: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_h: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1311s # g_signal_new ("single-arg-signal-h", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_VARIANT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_h: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_h: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalH" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_h ( 1311s # OrgProjectSignalingIface *object, 1311s # GVariant *arg_arg_h) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1311s # OrgProjectSignalingIface *object, 1311s # GVariant *arg_arg_h) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1311s # arg_arg_h)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp_kmkarg0.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp_kmkarg0.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_ay", 1311s # (gchar *) "ay", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalAy", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-ay" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__STRING (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-ay: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_ay: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1311s # g_signal_new ("single-arg-signal-ay", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRING); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_ay: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalAy" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_ay) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *arg_arg_ay) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1311s # arg_arg_ay)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp1uzutrdi.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp1uzutrdi.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_as", 1311s # (gchar *) "as", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalAs", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-as" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__BOXED (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-as: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_as: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1311s # g_signal_new ("single-arg-signal-as", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRV); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_as: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_as: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalAs" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_as ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_as) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_as) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1311s # arg_arg_as)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp3swkc3ik.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp3swkc3ik.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_ao", 1311s # (gchar *) "ao", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalAo", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-ao" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__BOXED (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-ao: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_ao: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1311s # g_signal_new ("single-arg-signal-ao", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRV); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_ao: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalAo" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_ao) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_ao) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1311s # arg_arg_ao)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmpfdm25zf_.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmpfdm25zf_.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_aay", 1311s # (gchar *) "aay", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalAay", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-aay" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__BOXED (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-aay: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_aay: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1311s # g_signal_new ("single-arg-signal-aay", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_STRV); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_aay: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalAay" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_aay) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1311s # OrgProjectSignalingIface *object, 1311s # const gchar *const *arg_arg_aay) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1311s # arg_arg_aay)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s # 1311s # /tmp/tmpxsgydn5v/tmp3ce7chza.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxsgydn5v/tmp3ce7chza.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "arg_asv", 1311s # (gchar *) "a{sv}", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SingleArgSignalAsv", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "single-arg-signal-asv" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VARIANT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::single-arg-signal-asv: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_asv: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1311s # g_signal_new ("single-arg-signal-asv", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1311s # G_TYPE_NONE, 1311s # 1, G_TYPE_VARIANT); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_arg_asv: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1311s # OrgProjectSignalingIface *object, 1311s # GVariant *arg_arg_asv) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1311s # OrgProjectSignalingIface *object, 1311s # GVariant *arg_arg_asv) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1311s # arg_arg_asv)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpo5gjxlrc 1311s # /tmp/tmpo5gjxlrc/tmp5b19ec0m.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo5gjxlrc/tmp5b19ec0m.xml', '--output', '-', '--body'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifdef HAVE_CONFIG_H 1311s # # include "config.h" 1311s # #endif 1311s # 1311s # #include 1311s # #ifdef G_OS_UNIX 1311s # # include 1311s # #endif 1311s # 1311s # #ifdef G_ENABLE_DEBUG 1311s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1311s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1311s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1311s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1311s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1311s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1311s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1311s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1311s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1311s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1311s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1311s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1311s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1311s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1311s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1311s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1311s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1311s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1311s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1311s # #else /* !G_ENABLE_DEBUG */ 1311s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1311s # * Do not access GValues directly in your code. Instead, use the 1311s # * g_value_get_*() functions 1311s # */ 1311s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1311s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1311s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1311s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1311s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1311s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1311s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1311s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1311s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1311s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1311s # #endif /* !G_ENABLE_DEBUG */ 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusArgInfo parent_struct; 1311s # gboolean use_gvariant; 1311s # } _ExtendedGDBusArgInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusMethodInfo parent_struct; 1311s # const gchar *signal_name; 1311s # gboolean pass_fdlist; 1311s # } _ExtendedGDBusMethodInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusSignalInfo parent_struct; 1311s # const gchar *signal_name; 1311s # } _ExtendedGDBusSignalInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusPropertyInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # guint use_gvariant : 1; 1311s # guint emits_changed_signal : 1; 1311s # } _ExtendedGDBusPropertyInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # GDBusInterfaceInfo parent_struct; 1311s # const gchar *hyphen_name; 1311s # } _ExtendedGDBusInterfaceInfo; 1311s # 1311s # typedef struct 1311s # { 1311s # const _ExtendedGDBusPropertyInfo *info; 1311s # guint prop_id; 1311s # GValue orig_value; /* the value before the change */ 1311s # } ChangedProperty; 1311s # 1311s # static void 1311s # _changed_property_free (ChangedProperty *data) 1311s # { 1311s # g_value_unset (&data->orig_value); 1311s # g_free (data); 1311s # } 1311s # 1311s # static gboolean 1311s # _g_strv_equal0 (gchar **a, gchar **b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # guint n; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # if (g_strv_length (a) != g_strv_length (b)) 1311s # goto out; 1311s # for (n = 0; a[n] != NULL; n++) 1311s # if (g_strcmp0 (a[n], b[n]) != 0) 1311s # goto out; 1311s # ret = TRUE; 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _g_variant_equal0 (GVariant *a, GVariant *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # if (a == NULL && b == NULL) 1311s # { 1311s # ret = TRUE; 1311s # goto out; 1311s # } 1311s # if (a == NULL || b == NULL) 1311s # goto out; 1311s # ret = g_variant_equal (a, b); 1311s # out: 1311s # return ret; 1311s # } 1311s # 1311s # G_GNUC_UNUSED static gboolean 1311s # _g_value_equal (const GValue *a, const GValue *b) 1311s # { 1311s # gboolean ret = FALSE; 1311s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1311s # switch (G_VALUE_TYPE (a)) 1311s # { 1311s # case G_TYPE_BOOLEAN: 1311s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1311s # break; 1311s # case G_TYPE_UCHAR: 1311s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1311s # break; 1311s # case G_TYPE_INT: 1311s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1311s # break; 1311s # case G_TYPE_UINT: 1311s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1311s # break; 1311s # case G_TYPE_INT64: 1311s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1311s # break; 1311s # case G_TYPE_UINT64: 1311s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1311s # break; 1311s # case G_TYPE_DOUBLE: 1311s # { 1311s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1311s # gdouble da = g_value_get_double (a); 1311s # gdouble db = g_value_get_double (b); 1311s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1311s # } 1311s # break; 1311s # case G_TYPE_STRING: 1311s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1311s # break; 1311s # case G_TYPE_VARIANT: 1311s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1311s # break; 1311s # default: 1311s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1311s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1311s # else 1311s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1311s # break; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static void 1311s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1311s # GClosure *closure, 1311s # GValue *return_value G_GNUC_UNUSED, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint G_GNUC_UNUSED, 1311s # void *marshal_data) 1311s # { 1311s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1311s # (void *data1, 1311s # gboolean arg_an_b, 1311s # guchar arg_an_y, 1311s # gint16 arg_an_n, 1311s # guint16 arg_an_q, 1311s # gint arg_an_i, 1311s # guint arg_an_u, 1311s # gint64 arg_an_x, 1311s # guint64 arg_an_t, 1311s # gdouble arg_an_d, 1311s # const gchar *arg_an_s, 1311s # const gchar *arg_an_o, 1311s # const gchar *arg_an_g, 1311s # GVariant *arg_an_h, 1311s # const gchar *arg_an_ay, 1311s # const gchar *const *arg_an_as, 1311s # const gchar *const *arg_an_ao, 1311s # const gchar *const *arg_an_aay, 1311s # GVariant *arg_an_asv, 1311s # void *data2); 1311s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1311s # GCClosure *cc = (GCClosure*) closure; 1311s # void *data1, *data2; 1311s # 1311s # g_return_if_fail (n_param_values == 19); 1311s # 1311s # if (G_CCLOSURE_SWAP_DATA (closure)) 1311s # { 1311s # data1 = closure->data; 1311s # data2 = g_value_peek_pointer (param_values + 0); 1311s # } 1311s # else 1311s # { 1311s # data1 = g_value_peek_pointer (param_values + 0); 1311s # data2 = closure->data; 1311s # } 1311s # 1311s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1311s # (marshal_data ? marshal_data : cc->callback); 1311s # 1311s # callback (data1, 1311s # g_marshal_value_peek_boolean (param_values + 1), 1311s # g_marshal_value_peek_uchar (param_values + 2), 1311s # g_marshal_value_peek_int (param_values + 3), 1311s # g_marshal_value_peek_uint (param_values + 4), 1311s # g_marshal_value_peek_int (param_values + 5), 1311s # g_marshal_value_peek_uint (param_values + 6), 1311s # g_marshal_value_peek_int64 (param_values + 7), 1311s # g_marshal_value_peek_uint64 (param_values + 8), 1311s # g_marshal_value_peek_double (param_values + 9), 1311s # g_marshal_value_peek_string (param_values + 10), 1311s # g_marshal_value_peek_string (param_values + 11), 1311s # g_marshal_value_peek_string (param_values + 12), 1311s # g_marshal_value_peek_variant (param_values + 13), 1311s # g_marshal_value_peek_string (param_values + 14), 1311s # g_marshal_value_peek_boxed (param_values + 15), 1311s # g_marshal_value_peek_boxed (param_values + 16), 1311s # g_marshal_value_peek_boxed (param_values + 17), 1311s # g_marshal_value_peek_variant (param_values + 18), 1311s # data2); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ 1311s # * Code for interface org.project.SignalingIface 1311s # * ------------------------------------------------------------------------ 1311s # */ 1311s # 1311s # /** 1311s # * SECTION:OrgProjectSignalingIface 1311s # * @title: OrgProjectSignalingIface 1311s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1311s # * 1311s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1311s # */ 1311s # 1311s # enum 1311s # { 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1311s # }; 1311s # 1311s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1311s # 1311s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SimpleSignal", 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "simple-signal" 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_b", 1311s # (gchar *) "b", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_y", 1311s # (gchar *) "y", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_n", 1311s # (gchar *) "n", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_q", 1311s # (gchar *) "q", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_i", 1311s # (gchar *) "i", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_u", 1311s # (gchar *) "u", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_x", 1311s # (gchar *) "x", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_t", 1311s # (gchar *) "t", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_d", 1311s # (gchar *) "d", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_s", 1311s # (gchar *) "s", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_o", 1311s # (gchar *) "o", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_g", 1311s # (gchar *) "g", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_h", 1311s # (gchar *) "h", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_ay", 1311s # (gchar *) "ay", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_as", 1311s # (gchar *) "as", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_ao", 1311s # (gchar *) "ao", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_aay", 1311s # (gchar *) "aay", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "an_asv", 1311s # (gchar *) "a{sv}", 1311s # NULL 1311s # }, 1311s # FALSE 1311s # }; 1311s # 1311s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "SignalWithManyArgs", 1311s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1311s # NULL 1311s # }, 1311s # "signal-with-many-args" 1311s # }; 1311s # 1311s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1311s # { 1311s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1311s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1311s # NULL 1311s # }; 1311s # 1311s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1311s # { 1311s # { 1311s # -1, 1311s # (gchar *) "org.project.SignalingIface", 1311s # NULL, 1311s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1311s # NULL, 1311s # NULL 1311s # }, 1311s # "org-project-signaling-iface", 1311s # }; 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_interface_info: 1311s # * 1311s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1311s # * 1311s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1311s # */ 1311s # GDBusInterfaceInfo * 1311s # org_project_signaling_iface_interface_info (void) 1311s # { 1311s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_override_properties: 1311s # * @klass: The class structure for a #GObject derived class. 1311s # * @property_id_begin: The property id to assign to the first overridden property. 1311s # * 1311s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1311s # * The properties are overridden in the order they are defined. 1311s # * 1311s # * Returns: The last property id. 1311s # */ 1311s # guint 1311s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1311s # { 1311s # return property_id_begin - 1; 1311s # } 1311s # 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_simple_signal ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # g_cclosure_marshal_VOID__VOID (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # inline static void 1311s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1311s # GClosure *closure, 1311s # GValue *return_value, 1311s # unsigned int n_param_values, 1311s # const GValue *param_values, 1311s # void *invocation_hint, 1311s # void *marshal_data) 1311s # { 1311s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1311s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1311s # } 1311s # 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface: 1311s # * 1311s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceIface: 1311s # * @parent_iface: The parent interface. 1311s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1311s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1311s # * 1311s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1311s # */ 1311s # 1311s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1311s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1311s # 1311s # static void 1311s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # /* GObject signals for received D-Bus signals: */ 1311s # /** 1311s # * OrgProjectSignalingIface::simple-signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1311s # g_signal_new ("simple-signal", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_simple_signal, 1311s # G_TYPE_NONE, 1311s # 0); 1311s # 1311s # /** 1311s # * OrgProjectSignalingIface::signal-with-many-args: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_an_b: Argument. 1311s # * @arg_an_y: Argument. 1311s # * @arg_an_n: Argument. 1311s # * @arg_an_q: Argument. 1311s # * @arg_an_i: Argument. 1311s # * @arg_an_u: Argument. 1311s # * @arg_an_x: Argument. 1311s # * @arg_an_t: Argument. 1311s # * @arg_an_d: Argument. 1311s # * @arg_an_s: Argument. 1311s # * @arg_an_o: Argument. 1311s # * @arg_an_g: Argument. 1311s # * @arg_an_h: Argument. 1311s # * @arg_an_ay: Argument. 1311s # * @arg_an_as: Argument. 1311s # * @arg_an_ao: Argument. 1311s # * @arg_an_aay: Argument. 1311s # * @arg_an_asv: Argument. 1311s # * 1311s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1311s # * 1311s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1311s # */ 1311s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1311s # g_signal_new ("signal-with-many-args", 1311s # G_TYPE_FROM_INTERFACE (iface), 1311s # G_SIGNAL_RUN_LAST, 1311s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1311s # NULL, 1311s # NULL, 1311s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1311s # G_TYPE_NONE, 1311s # 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); 1311s # 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_simple_signal: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * 1311s # * Emits the "SimpleSignal" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_emit_signal_with_many_args: 1311s # * @object: A #OrgProjectSignalingIface. 1311s # * @arg_an_b: Argument to pass with the signal. 1311s # * @arg_an_y: Argument to pass with the signal. 1311s # * @arg_an_n: Argument to pass with the signal. 1311s # * @arg_an_q: Argument to pass with the signal. 1311s # * @arg_an_i: Argument to pass with the signal. 1311s # * @arg_an_u: Argument to pass with the signal. 1311s # * @arg_an_x: Argument to pass with the signal. 1311s # * @arg_an_t: Argument to pass with the signal. 1311s # * @arg_an_d: Argument to pass with the signal. 1311s # * @arg_an_s: Argument to pass with the signal. 1311s # * @arg_an_o: Argument to pass with the signal. 1311s # * @arg_an_g: Argument to pass with the signal. 1311s # * @arg_an_h: Argument to pass with the signal. 1311s # * @arg_an_ay: Argument to pass with the signal. 1311s # * @arg_an_as: Argument to pass with the signal. 1311s # * @arg_an_ao: Argument to pass with the signal. 1311s # * @arg_an_aay: Argument to pass with the signal. 1311s # * @arg_an_asv: Argument to pass with the signal. 1311s # * 1311s # * Emits the "SignalWithManyArgs" D-Bus signal. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_emit_signal_with_many_args ( 1311s # OrgProjectSignalingIface *object, 1311s # gboolean arg_an_b, 1311s # guchar arg_an_y, 1311s # gint16 arg_an_n, 1311s # guint16 arg_an_q, 1311s # gint arg_an_i, 1311s # guint arg_an_u, 1311s # gint64 arg_an_x, 1311s # guint64 arg_an_t, 1311s # gdouble arg_an_d, 1311s # const gchar *arg_an_s, 1311s # const gchar *arg_an_o, 1311s # const gchar *arg_an_g, 1311s # GVariant *arg_an_h, 1311s # const gchar *arg_an_ay, 1311s # const gchar *const *arg_an_as, 1311s # const gchar *const *arg_an_ao, 1311s # const gchar *const *arg_an_aay, 1311s # GVariant *arg_an_asv) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxy: 1311s # * 1311s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceProxyClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceProxy. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceProxyPrivate 1311s # { 1311s # GData *qdata; 1311s # }; 1311s # 1311s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_proxy_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1311s # g_datalist_clear (&proxy->priv->qdata); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1311s # guint prop_id G_GNUC_UNUSED, 1311s # const GValue *value G_GNUC_UNUSED, 1311s # GParamSpec *pspec G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1311s # const gchar *sender_name G_GNUC_UNUSED, 1311s # const gchar *signal_name, 1311s # GVariant *parameters) 1311s # { 1311s # _ExtendedGDBusSignalInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # gsize n; 1311s # guint signal_id; 1311s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1311s # if (info == NULL) 1311s # return; 1311s # num_params = g_variant_n_children (parameters); 1311s # paramv = g_new0 (GValue, num_params + 1); 1311s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[0], proxy); 1311s # g_variant_iter_init (&iter, parameters); 1311s # n = 1; 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_signal_emitv (paramv, signal_id, 0, NULL); 1311s # for (n = 0; n < num_params + 1; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1311s # GVariant *changed_properties, 1311s # const gchar *const *invalidated_properties) 1311s # { 1311s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1311s # guint n; 1311s # const gchar *key; 1311s # GVariantIter *iter; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # g_variant_get (changed_properties, "a{sv}", &iter); 1311s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1311s # g_datalist_remove_data (&proxy->priv->qdata, key); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # g_variant_iter_free (iter); 1311s # for (n = 0; invalidated_properties[n] != NULL; n++) 1311s # { 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1311s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1311s # if (info != NULL) 1311s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1311s # } 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1311s # #else 1311s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1311s # #endif 1311s # 1311s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusProxyClass *proxy_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1311s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1311s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1311s # 1311s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1311s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1311s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_sync: 1311s # * @connection: A #GDBusConnection. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_sync ( 1311s # GDBusConnection *connection, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1311s # * @user_data: User data to pass to @callback. 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1311s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1311s # */ 1311s # void 1311s # org_project_signaling_iface_proxy_new_for_bus ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GAsyncReadyCallback callback, 1311s # gpointer user_data) 1311s # { 1311s # 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); 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1311s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1311s # GAsyncResult *res, 1311s # GError **error) 1311s # { 1311s # GObject *ret; 1311s # GObject *source_object; 1311s # source_object = g_async_result_get_source_object (res); 1311s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1311s # g_object_unref (source_object); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1311s # * @bus_type: A #GBusType. 1311s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1311s # * @name: A bus name (well-known or unique). 1311s # * @object_path: An object path. 1311s # * @cancellable: (nullable): A #GCancellable or %NULL. 1311s # * @error: Return location for error or %NULL 1311s # * 1311s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1311s # * 1311s # * The calling thread is blocked until a reply is received. 1311s # * 1311s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1311s # GBusType bus_type, 1311s # GDBusProxyFlags flags, 1311s # const gchar *name, 1311s # const gchar *object_path, 1311s # GCancellable *cancellable, 1311s # GError **error) 1311s # { 1311s # GInitable *ret; 1311s # 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); 1311s # if (ret != NULL) 1311s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1311s # else 1311s # return NULL; 1311s # } 1311s # 1311s # 1311s # /* ------------------------------------------------------------------------ */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeleton: 1311s # * 1311s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1311s # */ 1311s # 1311s # /** 1311s # * OrgProjectSignalingIfaceSkeletonClass: 1311s # * @parent_class: The parent class. 1311s # * 1311s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1311s # */ 1311s # 1311s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1311s # { 1311s # GValue *properties; 1311s # GList *changed_properties; 1311s # GSource *changed_properties_idle_source; 1311s # GMainContext *context; 1311s # GMutex lock; 1311s # }; 1311s # 1311s # static void 1311s # _org_project_signaling_iface_skeleton_handle_method_call ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name, 1311s # const gchar *method_name, 1311s # GVariant *parameters, 1311s # GDBusMethodInvocation *invocation, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # _ExtendedGDBusMethodInfo *info; 1311s # GVariantIter iter; 1311s # GVariant *child; 1311s # GValue *paramv; 1311s # gsize num_params; 1311s # guint num_extra; 1311s # gsize n; 1311s # guint signal_id; 1311s # GValue return_value = G_VALUE_INIT; 1311s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1311s # g_assert (info != NULL); 1311s # num_params = g_variant_n_children (parameters); 1311s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1311s # n = 0; 1311s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_set_object (¶mv[n++], skeleton); 1311s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1311s # g_value_set_object (¶mv[n++], invocation); 1311s # if (info->pass_fdlist) 1311s # { 1311s # #ifdef G_OS_UNIX 1311s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1311s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1311s # #else 1311s # g_assert_not_reached (); 1311s # #endif 1311s # } 1311s # g_variant_iter_init (&iter, parameters); 1311s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1311s # { 1311s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1311s # if (arg_info->use_gvariant) 1311s # { 1311s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1311s # g_value_set_variant (¶mv[n], child); 1311s # n++; 1311s # } 1311s # else 1311s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1311s # g_variant_unref (child); 1311s # } 1311s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1311s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1311s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1311s # if (!g_value_get_boolean (&return_value)) 1311s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1311s # g_value_unset (&return_value); 1311s # for (n = 0; n < num_params + num_extra; n++) 1311s # g_value_unset (¶mv[n]); 1311s # g_free (paramv); 1311s # } 1311s # 1311s # static GVariant * 1311s # _org_project_signaling_iface_skeleton_handle_get_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # GVariant *ret; 1311s # ret = NULL; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # g_value_init (&value, pspec->value_type); 1311s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1311s # g_value_unset (&value); 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static gboolean 1311s # _org_project_signaling_iface_skeleton_handle_set_property ( 1311s # GDBusConnection *connection G_GNUC_UNUSED, 1311s # const gchar *sender G_GNUC_UNUSED, 1311s # const gchar *object_path G_GNUC_UNUSED, 1311s # const gchar *interface_name G_GNUC_UNUSED, 1311s # const gchar *property_name, 1311s # GVariant *variant, 1311s # GError **error, 1311s # gpointer user_data) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1311s # GValue value = G_VALUE_INIT; 1311s # GParamSpec *pspec; 1311s # _ExtendedGDBusPropertyInfo *info; 1311s # gboolean ret; 1311s # ret = FALSE; 1311s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1311s # g_assert (info != NULL); 1311s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1311s # if (pspec == NULL) 1311s # { 1311s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1311s # } 1311s # else 1311s # { 1311s # if (info->use_gvariant) 1311s # g_value_set_variant (&value, variant); 1311s # else 1311s # g_dbus_gvariant_to_gvalue (variant, &value); 1311s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1311s # g_value_unset (&value); 1311s # ret = TRUE; 1311s # } 1311s # return ret; 1311s # } 1311s # 1311s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1311s # { 1311s # _org_project_signaling_iface_skeleton_handle_method_call, 1311s # _org_project_signaling_iface_skeleton_handle_get_property, 1311s # _org_project_signaling_iface_skeleton_handle_set_property, 1311s # {NULL} 1311s # }; 1311s # 1311s # static GDBusInterfaceInfo * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return org_project_signaling_iface_interface_info (); 1311s # } 1311s # 1311s # static GDBusInterfaceVTable * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1311s # { 1311s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1311s # } 1311s # 1311s # static GVariant * 1311s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1311s # 1311s # GVariantBuilder builder; 1311s # guint n; 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1311s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #else 1311s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1311s # #endif 1311s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1311s # goto out; 1311s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1311s # { 1311s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1311s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1311s # { 1311s # GVariant *value; 1311s # 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); 1311s # if (value != NULL) 1311s # { 1311s # g_variant_take_ref (value); 1311s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1311s # g_variant_unref (value); 1311s # } 1311s # } 1311s # } 1311s # out: 1311s # return g_variant_builder_end (&builder); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1311s # { 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_simple_signal ( 1311s # OrgProjectSignalingIface *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void 1311s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1311s # OrgProjectSignalingIface *object, 1311s # gboolean arg_an_b, 1311s # guchar arg_an_y, 1311s # gint16 arg_an_n, 1311s # guint16 arg_an_q, 1311s # gint arg_an_i, 1311s # guint arg_an_u, 1311s # gint64 arg_an_x, 1311s # guint64 arg_an_t, 1311s # gdouble arg_an_d, 1311s # const gchar *arg_an_s, 1311s # const gchar *arg_an_o, 1311s # const gchar *arg_an_g, 1311s # GVariant *arg_an_h, 1311s # const gchar *arg_an_ay, 1311s # const gchar *const *arg_an_as, 1311s # const gchar *const *arg_an_ao, 1311s # const gchar *const *arg_an_aay, 1311s # GVariant *arg_an_asv) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # 1311s # GList *connections, *l; 1311s # GVariant *signal_variant; 1311s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1311s # 1311s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1311s # arg_an_b, 1311s # arg_an_y, 1311s # arg_an_n, 1311s # arg_an_q, 1311s # arg_an_i, 1311s # arg_an_u, 1311s # arg_an_x, 1311s # arg_an_t, 1311s # arg_an_d, 1311s # arg_an_s, 1311s # arg_an_o, 1311s # arg_an_g, 1311s # arg_an_h, 1311s # arg_an_ay, 1311s # arg_an_as, 1311s # arg_an_ao, 1311s # arg_an_aay, 1311s # arg_an_asv)); 1311s # for (l = connections; l != NULL; l = l->next) 1311s # { 1311s # GDBusConnection *connection = l->data; 1311s # g_dbus_connection_emit_signal (connection, 1311s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1311s # signal_variant, NULL); 1311s # } 1311s # g_variant_unref (signal_variant); 1311s # g_list_free_full (connections, g_object_unref); 1311s # } 1311s # 1311s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #else 1311s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1311s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1311s # 1311s # #endif 1311s # static void 1311s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1311s # { 1311s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1311s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1311s # if (skeleton->priv->changed_properties_idle_source != NULL) 1311s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1311s # g_main_context_unref (skeleton->priv->context); 1311s # g_mutex_clear (&skeleton->priv->lock); 1311s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1311s # { 1311s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1311s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1311s # #else 1311s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1311s # #endif 1311s # 1311s # g_mutex_init (&skeleton->priv->lock); 1311s # skeleton->priv->context = g_main_context_ref_thread_default (); 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1311s # { 1311s # GObjectClass *gobject_class; 1311s # GDBusInterfaceSkeletonClass *skeleton_class; 1311s # 1311s # gobject_class = G_OBJECT_CLASS (klass); 1311s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1311s # 1311s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1311s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1311s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1311s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1311s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1311s # 1311s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1311s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1311s # #endif 1311s # } 1311s # 1311s # static void 1311s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1311s # { 1311s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1311s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1311s # } 1311s # 1311s # /** 1311s # * org_project_signaling_iface_skeleton_new: 1311s # * 1311s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1311s # * 1311s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1311s # */ 1311s # OrgProjectSignalingIface * 1311s # org_project_signaling_iface_skeleton_new (void) 1311s # { 1311s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1311s # } 1311s # Error: 1311s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpfly833hp 1311s # /tmp/tmpfly833hp/tmp4opoalop.xml: 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfly833hp/tmp4opoalop.xml', '--generate-docbook', 'test'] 1311s # Return code: 0 1311s # Output: 1311s # 1311s # Error: 1311s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpvksnxvdl 1311s # /tmp/tmpvksnxvdl/tmpssd9frl7.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvksnxvdl/tmpssd9frl7.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1311s # Return code: 1 1311s # Output: 1311s # 1311s # Error: 1311s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1311s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpr29pw29k 1311s # /tmp/tmpr29pw29k/tmp3x7iujhv.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpr29pw29k/tmp3x7iujhv.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifndef __STDOUT__ 1311s # #define __STDOUT__ 1311s # 1311s # #include 1311s # 1311s # G_BEGIN_DECLS 1311s # 1311s # 1311s # G_END_DECLS 1311s # 1311s # #endif /* __STDOUT__ */ 1311s # Error: 1311s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpb7qqfg2v 1311s # /tmp/tmpb7qqfg2v/tmp3tlekwib.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb7qqfg2v/tmp3tlekwib.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1311s # Return code: 1 1311s # Output: 1311s # 1311s # Error: 1311s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1311s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmp146kux77 1311s # /tmp/tmp146kux77/tmpe4sj86q0.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp146kux77/tmpe4sj86q0.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifndef __STDOUT__ 1311s # #define __STDOUT__ 1311s # 1311s # #include 1311s # 1311s # G_BEGIN_DECLS 1311s # 1311s # 1311s # G_END_DECLS 1311s # 1311s # #endif /* __STDOUT__ */ 1311s # Error: 1311s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpbgi88gi9 1311s # /tmp/tmpbgi88gi9/tmpt931c46c.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbgi88gi9/tmpt931c46c.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1311s # Return code: 0 1311s # Output: 1311s # /* 1311s # * This file is generated by gdbus-codegen, do not modify it. 1311s # * 1311s # * The license of this code is the same as for the D-Bus interface description 1311s # * it was derived from. Note that it links to GLib, so must comply with the 1311s # * LGPL linking clauses. 1311s # */ 1311s # 1311s # #ifndef __STDOUT__ 1311s # #define __STDOUT__ 1311s # 1311s # #include 1311s # 1311s # G_BEGIN_DECLS 1311s # 1311s # 1311s # G_END_DECLS 1311s # 1311s # #endif /* __STDOUT__ */ 1311s # Error: 1311s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1311s # gdbus-codegen: /usr/bin/gdbus-codegen 1311s # tmpdir: /tmp/tmpax4kmaib 1311s # /tmp/tmpax4kmaib/tmphiepvpgt.xml: 1311s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpax4kmaib/tmphiepvpgt.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1311s # Return code: 1 1311s # Output: 1311s # 1311s # Error: 1311s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1312s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmpd7uyh5pb 1312s # /tmp/tmpd7uyh5pb/tmp_42jl2cr.xml: 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd7uyh5pb/tmp_42jl2cr.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmpkwoh2d5y 1312s # /tmp/tmpkwoh2d5y/tmpdw5ivtgu.xml: 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkwoh2d5y/tmpdw5ivtgu.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1312s # Return code: 1 1312s # Output: 1312s # 1312s # Error: 1312s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1312s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmpsvy4c6dk 1312s # /tmp/tmpsvy4c6dk/tmp0vnq4cus.xml: 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsvy4c6dk/tmp0vnq4cus.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s ok 35 __main__.TestCodegen.test_help 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmpemdi_dvt 1312s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1312s # Return code: 0 1312s # Output: 1312s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1312s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1312s # [--c-generate-autocleanup {none,objects,all}] 1312s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1312s # [--generate-rst OUTFILES] [--pragma-once] 1312s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1312s # [--glib-min-required VERSION] 1312s # [--glib-max-allowed VERSION] 1312s # [--symbol-decorator SYMBOL_DECORATOR] 1312s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1312s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1312s # [--generate-c-code OUTFILES | --header | --body | 1312s # --interface-info-header | --interface-info-body] 1312s # [--output FILE | --output-directory OUTDIR] 1312s # FILE [FILE ...] 1312s # 1312s # D-Bus code and documentation generator 1312s # 1312s # positional arguments: 1312s # FILE D-Bus introspection XML file 1312s # 1312s # options: 1312s # -h, --help show this help message and exit 1312s # --interface-prefix PREFIX 1312s # String to strip from D-Bus interface names for code 1312s # and docs 1312s # --c-namespace NAMESPACE 1312s # The namespace to use for generated C code 1312s # --c-generate-object-manager 1312s # Generate a GDBusObjectManagerClient subclass when 1312s # generating C code 1312s # --c-generate-autocleanup {none,objects,all} 1312s # Generate autocleanup support 1312s # --generate-docbook OUTFILES 1312s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1312s # --generate-md OUTFILES 1312s # Generate Markdown in OUTFILES-org.Project.IFace.md 1312s # --generate-rst OUTFILES 1312s # Generate reStructuredText in OUTFILES- 1312s # org.Project.IFace.rst 1312s # --pragma-once Use "pragma once" as the inclusion guard 1312s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1312s # Add annotation (may be used several times) 1312s # --glib-min-required VERSION 1312s # Minimum version of GLib to be supported by the 1312s # outputted code (default: 2.30) 1312s # --glib-max-allowed VERSION 1312s # Maximum version of GLib to be used by the outputted 1312s # code (default: current GLib version) 1312s # --symbol-decorator SYMBOL_DECORATOR 1312s # Macro used to decorate a symbol in the outputted 1312s # header, possibly to export symbols 1312s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1312s # Additional header required for decorator specified by 1312s # --symbol-decorator 1312s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1312s # Additional define required for decorator specified by 1312s # --symbol-decorator 1312s # --generate-c-code OUTFILES 1312s # Generate C code in OUTFILES.[ch] 1312s # --header Generate C headers 1312s # --body Generate C code 1312s # --interface-info-header 1312s # Generate GDBusInterfaceInfo C header 1312s # --interface-info-body 1312s # Generate GDBusInterfaceInfo C code 1312s # --output FILE Write output into the specified file 1312s # --output-directory OUTDIR 1312s # Location to output generated files 1312s # Error: 1312s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmplbw49xit 1312s # /tmp/tmplbw49xit/tmp4z2f_0ou.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplbw49xit/tmp4z2f_0ou.xml', '--generate-rst', 'test'] 1312s # Return code: 0 1312s # Output: 1312s # 1312s # Error: 1312s # 1312s # /tmp/tmplbw49xit/tmpj83gg_mp.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplbw49xit/tmpj83gg_mp.xml', '--generate-md', 'test'] 1312s # Return code: 0 1312s # Output: 1312s # 1312s # Error: 1312s # 1312s # /tmp/tmplbw49xit/tmpnjncxewz.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplbw49xit/tmpnjncxewz.xml', '--generate-docbook', 'test'] 1312s # Return code: 0 1312s # Output: 1312s # 1312s # Error: 1312s ok 37 __main__.TestCodegen.test_no_args 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmpsqhalfc0 1312s # Running: ['/usr/bin/gdbus-codegen'] 1312s # Return code: 2 1312s # Output: 1312s # 1312s # Error: 1312s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1312s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1312s # [--c-generate-autocleanup {none,objects,all}] 1312s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1312s # [--generate-rst OUTFILES] [--pragma-once] 1312s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1312s # [--glib-min-required VERSION] 1312s # [--glib-max-allowed VERSION] 1312s # [--symbol-decorator SYMBOL_DECORATOR] 1312s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1312s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1312s # [--generate-c-code OUTFILES | --header | --body | 1312s # --interface-info-header | --interface-info-body] 1312s # [--output FILE | --output-directory OUTDIR] 1312s # FILE [FILE ...] 1312s # gdbus-codegen: error: the following arguments are required: FILE 1312s ok 38 __main__.TestCodegen.test_reproducible 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmp445zv57e 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp445zv57e/tmpyzm7c5w51.xml', '/tmp/tmp445zv57e/tmp_5nauzym2.xml', '--output', '-', '--header'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for org.project.Bar.Frobnicator */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1312s # 1312s # struct _OrgProjectBarFrobnicator; 1312s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1312s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1312s # 1312s # struct _OrgProjectBarFrobnicatorIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # gboolean (*handle_random_method) ( 1312s # OrgProjectBarFrobnicator *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1312s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void org_project_bar_frobnicator_complete_random_method ( 1312s # OrgProjectBarFrobnicator *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void org_project_bar_frobnicator_call_random_method ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1312s # 1312s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1312s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1312s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void org_project_bar_frobnicator_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1312s # 1312s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1312s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1312s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for com.acme.Coyote */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1312s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1312s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1312s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1312s # 1312s # struct _ComAcmeCoyote; 1312s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1312s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1312s # 1312s # struct _ComAcmeCoyoteIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # 1312s # 1312s # gboolean (*handle_attack) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # gboolean (*handle_run) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # gboolean (*handle_sleep) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1312s # 1312s # void (*surprised) ( 1312s # ComAcmeCoyote *object); 1312s # 1312s # }; 1312s # 1312s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1312s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void com_acme_coyote_complete_run ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # void com_acme_coyote_complete_sleep ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # void com_acme_coyote_complete_attack ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus signal emissions functions: */ 1312s # void com_acme_coyote_emit_surprised ( 1312s # ComAcmeCoyote *object); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void com_acme_coyote_call_run ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_run_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_run_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_call_sleep ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_sleep_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_sleep_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_call_attack ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_attack_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_attack_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* D-Bus property accessors: */ 1312s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1312s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1312s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1312s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1312s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1312s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1312s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1312s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1312s # 1312s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1312s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1312s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1312s # 1312s # struct _ComAcmeCoyoteProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # ComAcmeCoyoteProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _ComAcmeCoyoteProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void com_acme_coyote_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1312s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1312s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1312s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1312s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1312s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1312s # 1312s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1312s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1312s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1312s # 1312s # struct _ComAcmeCoyoteSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # ComAcmeCoyoteSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _ComAcmeCoyoteSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp445zv57e/tmp_5nauzym2.xml', '/tmp/tmp445zv57e/tmpyzm7c5w51.xml', '--output', '-', '--header'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for org.project.Bar.Frobnicator */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1312s # 1312s # struct _OrgProjectBarFrobnicator; 1312s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1312s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1312s # 1312s # struct _OrgProjectBarFrobnicatorIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # gboolean (*handle_random_method) ( 1312s # OrgProjectBarFrobnicator *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1312s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void org_project_bar_frobnicator_complete_random_method ( 1312s # OrgProjectBarFrobnicator *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void org_project_bar_frobnicator_call_random_method ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1312s # 1312s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1312s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1312s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void org_project_bar_frobnicator_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1312s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1312s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1312s # 1312s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1312s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1312s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for com.acme.Coyote */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1312s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1312s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1312s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1312s # 1312s # struct _ComAcmeCoyote; 1312s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1312s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1312s # 1312s # struct _ComAcmeCoyoteIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # 1312s # 1312s # gboolean (*handle_attack) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # gboolean (*handle_run) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # gboolean (*handle_sleep) ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1312s # 1312s # void (*surprised) ( 1312s # ComAcmeCoyote *object); 1312s # 1312s # }; 1312s # 1312s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1312s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void com_acme_coyote_complete_run ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # void com_acme_coyote_complete_sleep ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # void com_acme_coyote_complete_attack ( 1312s # ComAcmeCoyote *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus signal emissions functions: */ 1312s # void com_acme_coyote_emit_surprised ( 1312s # ComAcmeCoyote *object); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void com_acme_coyote_call_run ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_run_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_run_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_call_sleep ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_sleep_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_sleep_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_call_attack ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean com_acme_coyote_call_attack_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean com_acme_coyote_call_attack_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* D-Bus property accessors: */ 1312s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1312s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1312s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1312s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1312s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1312s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1312s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1312s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1312s # 1312s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1312s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1312s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1312s # 1312s # struct _ComAcmeCoyoteProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # ComAcmeCoyoteProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _ComAcmeCoyoteProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void com_acme_coyote_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void com_acme_coyote_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1312s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1312s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1312s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1312s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1312s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1312s # 1312s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1312s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1312s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1312s # 1312s # struct _ComAcmeCoyoteSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # ComAcmeCoyoteSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _ComAcmeCoyoteSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp445zv57e/tmpyzm7c5w51.xml', '/tmp/tmp445zv57e/tmp_5nauzym2.xml', '--output', '-', '--body'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifdef HAVE_CONFIG_H 1312s # # include "config.h" 1312s # #endif 1312s # 1312s # #include 1312s # #ifdef G_OS_UNIX 1312s # # include 1312s # #endif 1312s # 1312s # #ifdef G_ENABLE_DEBUG 1312s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1312s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1312s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1312s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1312s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1312s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1312s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1312s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1312s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1312s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1312s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1312s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1312s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1312s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1312s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1312s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1312s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1312s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1312s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1312s # #else /* !G_ENABLE_DEBUG */ 1312s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1312s # * Do not access GValues directly in your code. Instead, use the 1312s # * g_value_get_*() functions 1312s # */ 1312s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1312s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1312s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1312s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1312s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1312s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1312s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1312s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1312s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1312s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1312s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1312s # #endif /* !G_ENABLE_DEBUG */ 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusArgInfo parent_struct; 1312s # gboolean use_gvariant; 1312s # } _ExtendedGDBusArgInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusMethodInfo parent_struct; 1312s # const gchar *signal_name; 1312s # gboolean pass_fdlist; 1312s # } _ExtendedGDBusMethodInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusSignalInfo parent_struct; 1312s # const gchar *signal_name; 1312s # } _ExtendedGDBusSignalInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusPropertyInfo parent_struct; 1312s # const gchar *hyphen_name; 1312s # guint use_gvariant : 1; 1312s # guint emits_changed_signal : 1; 1312s # } _ExtendedGDBusPropertyInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusInterfaceInfo parent_struct; 1312s # const gchar *hyphen_name; 1312s # } _ExtendedGDBusInterfaceInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # guint prop_id; 1312s # GValue orig_value; /* the value before the change */ 1312s # } ChangedProperty; 1312s # 1312s # static void 1312s # _changed_property_free (ChangedProperty *data) 1312s # { 1312s # g_value_unset (&data->orig_value); 1312s # g_free (data); 1312s # } 1312s # 1312s # static gboolean 1312s # _g_strv_equal0 (gchar **a, gchar **b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # guint n; 1312s # if (a == NULL && b == NULL) 1312s # { 1312s # ret = TRUE; 1312s # goto out; 1312s # } 1312s # if (a == NULL || b == NULL) 1312s # goto out; 1312s # if (g_strv_length (a) != g_strv_length (b)) 1312s # goto out; 1312s # for (n = 0; a[n] != NULL; n++) 1312s # if (g_strcmp0 (a[n], b[n]) != 0) 1312s # goto out; 1312s # ret = TRUE; 1312s # out: 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _g_variant_equal0 (GVariant *a, GVariant *b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # if (a == NULL && b == NULL) 1312s # { 1312s # ret = TRUE; 1312s # goto out; 1312s # } 1312s # if (a == NULL || b == NULL) 1312s # goto out; 1312s # ret = g_variant_equal (a, b); 1312s # out: 1312s # return ret; 1312s # } 1312s # 1312s # G_GNUC_UNUSED static gboolean 1312s # _g_value_equal (const GValue *a, const GValue *b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1312s # switch (G_VALUE_TYPE (a)) 1312s # { 1312s # case G_TYPE_BOOLEAN: 1312s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1312s # break; 1312s # case G_TYPE_UCHAR: 1312s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1312s # break; 1312s # case G_TYPE_INT: 1312s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1312s # break; 1312s # case G_TYPE_UINT: 1312s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1312s # break; 1312s # case G_TYPE_INT64: 1312s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1312s # break; 1312s # case G_TYPE_UINT64: 1312s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1312s # break; 1312s # case G_TYPE_DOUBLE: 1312s # { 1312s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1312s # gdouble da = g_value_get_double (a); 1312s # gdouble db = g_value_get_double (b); 1312s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1312s # } 1312s # break; 1312s # case G_TYPE_STRING: 1312s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1312s # break; 1312s # case G_TYPE_VARIANT: 1312s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1312s # break; 1312s # default: 1312s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1312s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1312s # else 1312s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1312s # break; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static void 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint G_GNUC_UNUSED, 1312s # void *marshal_data) 1312s # { 1312s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1312s # (void *data1, 1312s # GDBusMethodInvocation *arg_method_invocation, 1312s # void *data2); 1312s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1312s # GCClosure *cc = (GCClosure*) closure; 1312s # void *data1, *data2; 1312s # gboolean v_return; 1312s # 1312s # g_return_if_fail (return_value != NULL); 1312s # g_return_if_fail (n_param_values == 2); 1312s # 1312s # if (G_CCLOSURE_SWAP_DATA (closure)) 1312s # { 1312s # data1 = closure->data; 1312s # data2 = g_value_peek_pointer (param_values + 0); 1312s # } 1312s # else 1312s # { 1312s # data1 = g_value_peek_pointer (param_values + 0); 1312s # data2 = closure->data; 1312s # } 1312s # 1312s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1312s # (marshal_data ? marshal_data : cc->callback); 1312s # 1312s # v_return = 1312s # callback (data1, 1312s # g_marshal_value_peek_object (param_values + 1), 1312s # data2); 1312s # 1312s # g_value_set_boolean (return_value, v_return); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ 1312s # * Code for interface org.project.Bar.Frobnicator 1312s # * ------------------------------------------------------------------------ 1312s # */ 1312s # 1312s # /** 1312s # * SECTION:OrgProjectBarFrobnicator 1312s # * @title: OrgProjectBarFrobnicator 1312s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1312s # * 1312s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1312s # */ 1312s # 1312s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1312s # 1312s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "RandomMethod", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-random-method", 1312s # FALSE 1312s # }; 1312s # 1312s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1312s # { 1312s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "org.project.Bar.Frobnicator", 1312s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "org-project-bar-frobnicator", 1312s # }; 1312s # 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_interface_info: 1312s # * 1312s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1312s # * 1312s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1312s # */ 1312s # GDBusInterfaceInfo * 1312s # org_project_bar_frobnicator_interface_info (void) 1312s # { 1312s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_override_properties: 1312s # * @klass: The class structure for a #GObject derived class. 1312s # * @property_id_begin: The property id to assign to the first overridden property. 1312s # * 1312s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1312s # * The properties are overridden in the order they are defined. 1312s # * 1312s # * Returns: The last property id. 1312s # */ 1312s # guint 1312s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1312s # { 1312s # return property_id_begin - 1; 1312s # } 1312s # 1312s # 1312s # inline static void 1312s # org_project_bar_frobnicator_method_marshal_random_method ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicator: 1312s # * 1312s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorIface: 1312s # * @parent_iface: The parent interface. 1312s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1312s # * 1312s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1312s # */ 1312s # 1312s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1312s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1312s # { 1312s # /* GObject signals for incoming D-Bus method calls: */ 1312s # /** 1312s # * OrgProjectBarFrobnicator::handle-random-method: 1312s # * @object: A #OrgProjectBarFrobnicator. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-random-method", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # org_project_bar_frobnicator_method_marshal_random_method, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_call_random_method ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "RandomMethod", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method_finish: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # org_project_bar_frobnicator_call_random_method_finish ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method_sync: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # org_project_bar_frobnicator_call_random_method_sync ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "RandomMethod", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_complete_random_method: 1312s # * @object: A #OrgProjectBarFrobnicator. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_complete_random_method ( 1312s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorProxy: 1312s # * 1312s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorProxyClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1312s # */ 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxyPrivate 1312s # { 1312s # GData *qdata; 1312s # }; 1312s # 1312s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1312s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1312s # { 1312s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1312s # g_datalist_clear (&proxy->priv->qdata); 1312s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1312s # guint prop_id G_GNUC_UNUSED, 1312s # GValue *value G_GNUC_UNUSED, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1312s # guint prop_id G_GNUC_UNUSED, 1312s # const GValue *value G_GNUC_UNUSED, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1312s # const gchar *sender_name G_GNUC_UNUSED, 1312s # const gchar *signal_name, 1312s # GVariant *parameters) 1312s # { 1312s # _ExtendedGDBusSignalInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # gsize n; 1312s # guint signal_id; 1312s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1312s # if (info == NULL) 1312s # return; 1312s # num_params = g_variant_n_children (parameters); 1312s # paramv = g_new0 (GValue, num_params + 1); 1312s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_set_object (¶mv[0], proxy); 1312s # g_variant_iter_init (&iter, parameters); 1312s # n = 1; 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_signal_emitv (paramv, signal_id, 0, NULL); 1312s # for (n = 0; n < num_params + 1; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1312s # GVariant *changed_properties, 1312s # const gchar *const *invalidated_properties) 1312s # { 1312s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1312s # guint n; 1312s # const gchar *key; 1312s # GVariantIter *iter; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # g_variant_get (changed_properties, "a{sv}", &iter); 1312s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1312s # g_datalist_remove_data (&proxy->priv->qdata, key); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # g_variant_iter_free (iter); 1312s # for (n = 0; invalidated_properties[n] != NULL; n++) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1312s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1312s # #else 1312s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1312s # #endif 1312s # 1312s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusProxyClass *proxy_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1312s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1312s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1312s # 1312s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1312s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1312s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_sync: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorSkeleton: 1312s # * 1312s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorSkeletonClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1312s # */ 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1312s # { 1312s # GValue *properties; 1312s # GList *changed_properties; 1312s # GSource *changed_properties_idle_source; 1312s # GMainContext *context; 1312s # GMutex lock; 1312s # }; 1312s # 1312s # static void 1312s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name, 1312s # const gchar *method_name, 1312s # GVariant *parameters, 1312s # GDBusMethodInvocation *invocation, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # _ExtendedGDBusMethodInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # guint num_extra; 1312s # gsize n; 1312s # guint signal_id; 1312s # GValue return_value = G_VALUE_INIT; 1312s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1312s # g_assert (info != NULL); 1312s # num_params = g_variant_n_children (parameters); 1312s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1312s # n = 0; 1312s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_set_object (¶mv[n++], skeleton); 1312s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1312s # g_value_set_object (¶mv[n++], invocation); 1312s # if (info->pass_fdlist) 1312s # { 1312s # #ifdef G_OS_UNIX 1312s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1312s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1312s # #else 1312s # g_assert_not_reached (); 1312s # #endif 1312s # } 1312s # g_variant_iter_init (&iter, parameters); 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1312s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1312s # if (!g_value_get_boolean (&return_value)) 1312s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1312s # g_value_unset (&return_value); 1312s # for (n = 0; n < num_params + num_extra; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static GVariant * 1312s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *ret; 1312s # ret = NULL; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # g_value_init (&value, pspec->value_type); 1312s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_value_unset (&value); 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GVariant *variant, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # gboolean ret; 1312s # ret = FALSE; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # if (info->use_gvariant) 1312s # g_value_set_variant (&value, variant); 1312s # else 1312s # g_dbus_gvariant_to_gvalue (variant, &value); 1312s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # g_value_unset (&value); 1312s # ret = TRUE; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1312s # { 1312s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1312s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1312s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1312s # {NULL} 1312s # }; 1312s # 1312s # static GDBusInterfaceInfo * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return org_project_bar_frobnicator_interface_info (); 1312s # } 1312s # 1312s # static GDBusInterfaceVTable * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1312s # } 1312s # 1312s # static GVariant * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1312s # 1312s # GVariantBuilder builder; 1312s # guint n; 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #else 1312s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #endif 1312s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1312s # goto out; 1312s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1312s # { 1312s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1312s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1312s # { 1312s # GVariant *value; 1312s # 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); 1312s # if (value != NULL) 1312s # { 1312s # g_variant_take_ref (value); 1312s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1312s # g_variant_unref (value); 1312s # } 1312s # } 1312s # } 1312s # out: 1312s # return g_variant_builder_end (&builder); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # g_main_context_unref (skeleton->priv->context); 1312s # g_mutex_clear (&skeleton->priv->lock); 1312s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1312s # #else 1312s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1312s # #endif 1312s # 1312s # g_mutex_init (&skeleton->priv->lock); 1312s # skeleton->priv->context = g_main_context_ref_thread_default (); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusInterfaceSkeletonClass *skeleton_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1312s # 1312s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1312s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1312s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1312s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1312s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_skeleton_new: 1312s # * 1312s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_skeleton_new (void) 1312s # { 1312s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ 1312s # * Code for interface com.acme.Coyote 1312s # * ------------------------------------------------------------------------ 1312s # */ 1312s # 1312s # /** 1312s # * SECTION:ComAcmeCoyote 1312s # * @title: ComAcmeCoyote 1312s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1312s # * 1312s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1312s # */ 1312s # 1312s # enum 1312s # { 1312s # _COM_ACME_COYOTE_SURPRISED, 1312s # }; 1312s # 1312s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1312s # 1312s # /* ---- Introspection data for com.acme.Coyote ---- */ 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Run", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-run", 1312s # FALSE 1312s # }; 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Sleep", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-sleep", 1312s # FALSE 1312s # }; 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Attack", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-attack", 1312s # FALSE 1312s # }; 1312s # 1312s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_method_info_run.parent_struct, 1312s # &_com_acme_coyote_method_info_sleep.parent_struct, 1312s # &_com_acme_coyote_method_info_attack.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Surprised", 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "surprised" 1312s # }; 1312s # 1312s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Mood", 1312s # (gchar *) "s", 1312s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1312s # NULL 1312s # }, 1312s # "mood", 1312s # FALSE, 1312s # TRUE 1312s # }; 1312s # 1312s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_property_info_mood.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "com.acme.Coyote", 1312s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1312s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1312s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1312s # NULL 1312s # }, 1312s # "com-acme-coyote", 1312s # }; 1312s # 1312s # 1312s # /** 1312s # * com_acme_coyote_interface_info: 1312s # * 1312s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1312s # * 1312s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1312s # */ 1312s # GDBusInterfaceInfo * 1312s # com_acme_coyote_interface_info (void) 1312s # { 1312s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_override_properties: 1312s # * @klass: The class structure for a #GObject derived class. 1312s # * @property_id_begin: The property id to assign to the first overridden property. 1312s # * 1312s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1312s # * The properties are overridden in the order they are defined. 1312s # * 1312s # * Returns: The last property id. 1312s # */ 1312s # guint 1312s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1312s # { 1312s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1312s # return property_id_begin - 1; 1312s # } 1312s # 1312s # 1312s # inline static void 1312s # com_acme_coyote_signal_marshal_surprised ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # g_cclosure_marshal_VOID__VOID (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_run ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_sleep ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_attack ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # 1312s # /** 1312s # * ComAcmeCoyote: 1312s # * 1312s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteIface: 1312s # * @parent_iface: The parent interface. 1312s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1312s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1312s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1312s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1312s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1312s # * 1312s # * Virtual table for the D-Bus interface com.acme.Coyote. 1312s # */ 1312s # 1312s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1312s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1312s # 1312s # static void 1312s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # /* GObject signals for incoming D-Bus method calls: */ 1312s # /** 1312s # * ComAcmeCoyote::handle-run: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-run", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_run, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /** 1312s # * ComAcmeCoyote::handle-sleep: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-sleep", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_sleep, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /** 1312s # * ComAcmeCoyote::handle-attack: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-attack", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_attack, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /* GObject signals for received D-Bus signals: */ 1312s # /** 1312s # * ComAcmeCoyote::surprised: 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1312s # * 1312s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1312s # */ 1312s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1312s # g_signal_new ("surprised", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1312s # NULL, 1312s # NULL, 1312s # com_acme_coyote_signal_marshal_surprised, 1312s # G_TYPE_NONE, 1312s # 0); 1312s # 1312s # /* GObject properties for D-Bus properties: */ 1312s # /** 1312s # * ComAcmeCoyote:mood: 1312s # * 1312s # * Represents the D-Bus property "Mood". 1312s # * 1312s # * 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. 1312s # */ 1312s # g_object_interface_install_property (iface, 1312s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_get_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Gets the value of the "Mood" D-Bus property. 1312s # * 1312s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # const gchar * 1312s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1312s # 1312s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_dup_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Gets a copy of the "Mood" D-Bus property. 1312s # * 1312s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1312s # * 1312s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1312s # */ 1312s # gchar * 1312s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1312s # { 1312s # gchar *value; 1312s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1312s # return value; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_set_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * @value: The value to set. 1312s # * 1312s # * Sets the "Mood" D-Bus property to @value. 1312s # * 1312s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1312s # */ 1312s # void 1312s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1312s # { 1312s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_emit_surprised: 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Emits the "Surprised" D-Bus signal. 1312s # */ 1312s # void 1312s # com_acme_coyote_emit_surprised ( 1312s # ComAcmeCoyote *object) 1312s # { 1312s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_run ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Run", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_run(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_run_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_run_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Run", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_sleep ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Sleep", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_sleep_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_sleep_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Sleep", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_attack ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Attack", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_attack(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_attack_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_attack_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Attack", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_run: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_run ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_sleep: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_sleep ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_attack: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_attack ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteProxy: 1312s # * 1312s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteProxyClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #ComAcmeCoyoteProxy. 1312s # */ 1312s # 1312s # struct _ComAcmeCoyoteProxyPrivate 1312s # { 1312s # GData *qdata; 1312s # }; 1312s # 1312s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1312s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # com_acme_coyote_proxy_finalize (GObject *object) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1312s # g_datalist_clear (&proxy->priv->qdata); 1312s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_get_property (GObject *object, 1312s # guint prop_id, 1312s # GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *variant; 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1312s # if (info->use_gvariant) 1312s # { 1312s # g_value_set_variant (value, variant); 1312s # } 1312s # else 1312s # { 1312s # if (variant != NULL) 1312s # g_dbus_gvariant_to_gvalue (variant, value); 1312s # } 1312s # if (variant != NULL) 1312s # g_variant_unref (variant); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1312s # GAsyncResult *res, 1312s # gpointer user_data) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info = user_data; 1312s # GError *error; 1312s # GVariant *_ret; 1312s # error = NULL; 1312s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1312s # if (!_ret) 1312s # { 1312s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1312s # info->parent_struct.name, 1312s # error->message, g_quark_to_string (error->domain), error->code); 1312s # g_error_free (error); 1312s # } 1312s # else 1312s # { 1312s # g_variant_unref (_ret); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_set_property (GObject *object, 1312s # guint prop_id, 1312s # const GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *variant; 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1312s # "org.freedesktop.DBus.Properties.Set", 1312s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1312s # g_variant_unref (variant); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1312s # const gchar *sender_name G_GNUC_UNUSED, 1312s # const gchar *signal_name, 1312s # GVariant *parameters) 1312s # { 1312s # _ExtendedGDBusSignalInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # gsize n; 1312s # guint signal_id; 1312s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1312s # if (info == NULL) 1312s # return; 1312s # num_params = g_variant_n_children (parameters); 1312s # paramv = g_new0 (GValue, num_params + 1); 1312s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1312s # g_value_set_object (¶mv[0], proxy); 1312s # g_variant_iter_init (&iter, parameters); 1312s # n = 1; 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1312s # g_signal_emitv (paramv, signal_id, 0, NULL); 1312s # for (n = 0; n < num_params + 1; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1312s # GVariant *changed_properties, 1312s # const gchar *const *invalidated_properties) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1312s # guint n; 1312s # const gchar *key; 1312s # GVariantIter *iter; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # g_variant_get (changed_properties, "a{sv}", &iter); 1312s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1312s # g_datalist_remove_data (&proxy->priv->qdata, key); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # g_variant_iter_free (iter); 1312s # for (n = 0; invalidated_properties[n] != NULL; n++) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1312s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # } 1312s # 1312s # static const gchar * 1312s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1312s # GVariant *variant; 1312s # const gchar *value = NULL; 1312s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1312s # if (variant != NULL) 1312s # { 1312s # value = g_variant_get_string (variant, NULL); 1312s # g_variant_unref (variant); 1312s # } 1312s # return value; 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1312s # #else 1312s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1312s # #endif 1312s # 1312s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusProxyClass *proxy_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1312s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1312s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1312s # 1312s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1312s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1312s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1312s # 1312s # com_acme_coyote_override_properties (gobject_class, 1); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # com_acme_coyote_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_sync: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # com_acme_coyote_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus_sync: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteSkeleton: 1312s # * 1312s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteSkeletonClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #ComAcmeCoyoteSkeleton. 1312s # */ 1312s # 1312s # struct _ComAcmeCoyoteSkeletonPrivate 1312s # { 1312s # GValue *properties; 1312s # GList *changed_properties; 1312s # GSource *changed_properties_idle_source; 1312s # GMainContext *context; 1312s # GMutex lock; 1312s # }; 1312s # 1312s # static void 1312s # _com_acme_coyote_skeleton_handle_method_call ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name, 1312s # const gchar *method_name, 1312s # GVariant *parameters, 1312s # GDBusMethodInvocation *invocation, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # _ExtendedGDBusMethodInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # guint num_extra; 1312s # gsize n; 1312s # guint signal_id; 1312s # GValue return_value = G_VALUE_INIT; 1312s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1312s # g_assert (info != NULL); 1312s # num_params = g_variant_n_children (parameters); 1312s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1312s # n = 0; 1312s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1312s # g_value_set_object (¶mv[n++], skeleton); 1312s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1312s # g_value_set_object (¶mv[n++], invocation); 1312s # if (info->pass_fdlist) 1312s # { 1312s # #ifdef G_OS_UNIX 1312s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1312s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1312s # #else 1312s # g_assert_not_reached (); 1312s # #endif 1312s # } 1312s # g_variant_iter_init (&iter, parameters); 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1312s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1312s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1312s # if (!g_value_get_boolean (&return_value)) 1312s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1312s # g_value_unset (&return_value); 1312s # for (n = 0; n < num_params + num_extra; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static GVariant * 1312s # _com_acme_coyote_skeleton_handle_get_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *ret; 1312s # ret = NULL; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # g_value_init (&value, pspec->value_type); 1312s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_value_unset (&value); 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _com_acme_coyote_skeleton_handle_set_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GVariant *variant, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # gboolean ret; 1312s # ret = FALSE; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # if (info->use_gvariant) 1312s # g_value_set_variant (&value, variant); 1312s # else 1312s # g_dbus_gvariant_to_gvalue (variant, &value); 1312s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # g_value_unset (&value); 1312s # ret = TRUE; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1312s # { 1312s # _com_acme_coyote_skeleton_handle_method_call, 1312s # _com_acme_coyote_skeleton_handle_get_property, 1312s # _com_acme_coyote_skeleton_handle_set_property, 1312s # {NULL} 1312s # }; 1312s # 1312s # static GDBusInterfaceInfo * 1312s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return com_acme_coyote_interface_info (); 1312s # } 1312s # 1312s # static GDBusInterfaceVTable * 1312s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1312s # } 1312s # 1312s # static GVariant * 1312s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1312s # 1312s # GVariantBuilder builder; 1312s # guint n; 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #else 1312s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #endif 1312s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1312s # goto out; 1312s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1312s # { 1312s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1312s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1312s # { 1312s # GVariant *value; 1312s # 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); 1312s # if (value != NULL) 1312s # { 1312s # g_variant_take_ref (value); 1312s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1312s # g_variant_unref (value); 1312s # } 1312s # } 1312s # } 1312s # out: 1312s # return g_variant_builder_end (&builder); 1312s # } 1312s # 1312s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1312s # gboolean emit_changed = FALSE; 1312s # 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # { 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # skeleton->priv->changed_properties_idle_source = NULL; 1312s # emit_changed = TRUE; 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # 1312s # if (emit_changed) 1312s # _com_acme_coyote_emit_changed (skeleton); 1312s # } 1312s # 1312s # static void 1312s # _com_acme_coyote_on_signal_surprised ( 1312s # ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # 1312s # GList *connections, *l; 1312s # GVariant *signal_variant; 1312s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1312s # 1312s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1312s # for (l = connections; l != NULL; l = l->next) 1312s # { 1312s # GDBusConnection *connection = l->data; 1312s # g_dbus_connection_emit_signal (connection, 1312s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1312s # signal_variant, NULL); 1312s # } 1312s # g_variant_unref (signal_variant); 1312s # g_list_free_full (connections, g_object_unref); 1312s # } 1312s # 1312s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # com_acme_coyote_skeleton_finalize (GObject *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # guint n; 1312s # for (n = 0; n < 1; n++) 1312s # g_value_unset (&skeleton->priv->properties[n]); 1312s # g_free (skeleton->priv->properties); 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # g_main_context_unref (skeleton->priv->context); 1312s # g_mutex_clear (&skeleton->priv->lock); 1312s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_get_property (GObject *object, 1312s # guint prop_id, 1312s # GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # } 1312s # 1312s # static gboolean 1312s # _com_acme_coyote_emit_changed (gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GList *l; 1312s # GVariantBuilder builder; 1312s # GVariantBuilder invalidated_builder; 1312s # guint num_changes; 1312s # 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1312s # #else 1312s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1312s # #endif 1312s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1312s # { 1312s # ChangedProperty *cp = l->data; 1312s # GVariant *variant; 1312s # const GValue *cur_value; 1312s # 1312s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1312s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1312s # { 1312s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1312s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1312s # g_variant_unref (variant); 1312s # num_changes++; 1312s # } 1312s # } 1312s # if (num_changes > 0) 1312s # { 1312s # GList *connections, *ll; 1312s # GVariant *signal_variant; 1312s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1312s # &builder, &invalidated_builder)); 1312s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1312s # for (ll = connections; ll != NULL; ll = ll->next) 1312s # { 1312s # GDBusConnection *connection = ll->data; 1312s # 1312s # g_dbus_connection_emit_signal (connection, 1312s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1312s # "org.freedesktop.DBus.Properties", 1312s # "PropertiesChanged", 1312s # signal_variant, 1312s # NULL); 1312s # } 1312s # g_variant_unref (signal_variant); 1312s # g_list_free_full (connections, g_object_unref); 1312s # } 1312s # else 1312s # { 1312s # g_variant_builder_clear (&builder); 1312s # g_variant_builder_clear (&invalidated_builder); 1312s # } 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # skeleton->priv->changed_properties = NULL; 1312s # skeleton->priv->changed_properties_idle_source = NULL; 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # return FALSE; 1312s # } 1312s # 1312s # static void 1312s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1312s # { 1312s # ChangedProperty *cp; 1312s # GList *l; 1312s # cp = NULL; 1312s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1312s # { 1312s # ChangedProperty *i_cp = l->data; 1312s # if (i_cp->info == info) 1312s # { 1312s # cp = i_cp; 1312s # break; 1312s # } 1312s # } 1312s # if (cp == NULL) 1312s # { 1312s # cp = g_new0 (ChangedProperty, 1); 1312s # cp->prop_id = prop_id; 1312s # cp->info = info; 1312s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1312s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1312s # g_value_copy (orig_value, &cp->orig_value); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_notify (GObject *object, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # if (skeleton->priv->changed_properties != NULL && 1312s # skeleton->priv->changed_properties_idle_source == NULL) 1312s # { 1312s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1312s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1312s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1312s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1312s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1312s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_set_property (GObject *object, 1312s # guint prop_id, 1312s # const GValue *value, 1312s # GParamSpec *pspec) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # g_object_freeze_notify (object); 1312s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1312s # { 1312s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1312s # info->emits_changed_signal) 1312s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1312s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1312s # g_object_notify_by_pspec (object, pspec); 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # g_object_thaw_notify (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1312s # #else 1312s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1312s # #endif 1312s # 1312s # g_mutex_init (&skeleton->priv->lock); 1312s # skeleton->priv->context = g_main_context_ref_thread_default (); 1312s # skeleton->priv->properties = g_new0 (GValue, 1); 1312s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1312s # } 1312s # 1312s # static const gchar * 1312s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # const gchar *value; 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # return value; 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusInterfaceSkeletonClass *skeleton_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1312s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1312s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1312s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1312s # 1312s # 1312s # com_acme_coyote_override_properties (gobject_class, 1); 1312s # 1312s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1312s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1312s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1312s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1312s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1312s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_skeleton_new: 1312s # * 1312s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_skeleton_new (void) 1312s # { 1312s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1312s # } 1312s # Error: 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp445zv57e/tmp_5nauzym2.xml', '/tmp/tmp445zv57e/tmpyzm7c5w51.xml', '--output', '-', '--body'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifdef HAVE_CONFIG_H 1312s # # include "config.h" 1312s # #endif 1312s # 1312s # #include 1312s # #ifdef G_OS_UNIX 1312s # # include 1312s # #endif 1312s # 1312s # #ifdef G_ENABLE_DEBUG 1312s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1312s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1312s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1312s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1312s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1312s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1312s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1312s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1312s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1312s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1312s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1312s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1312s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1312s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1312s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1312s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1312s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1312s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1312s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1312s # #else /* !G_ENABLE_DEBUG */ 1312s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1312s # * Do not access GValues directly in your code. Instead, use the 1312s # * g_value_get_*() functions 1312s # */ 1312s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1312s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1312s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1312s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1312s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1312s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1312s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1312s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1312s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1312s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1312s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1312s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1312s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1312s # #endif /* !G_ENABLE_DEBUG */ 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusArgInfo parent_struct; 1312s # gboolean use_gvariant; 1312s # } _ExtendedGDBusArgInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusMethodInfo parent_struct; 1312s # const gchar *signal_name; 1312s # gboolean pass_fdlist; 1312s # } _ExtendedGDBusMethodInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusSignalInfo parent_struct; 1312s # const gchar *signal_name; 1312s # } _ExtendedGDBusSignalInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusPropertyInfo parent_struct; 1312s # const gchar *hyphen_name; 1312s # guint use_gvariant : 1; 1312s # guint emits_changed_signal : 1; 1312s # } _ExtendedGDBusPropertyInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # GDBusInterfaceInfo parent_struct; 1312s # const gchar *hyphen_name; 1312s # } _ExtendedGDBusInterfaceInfo; 1312s # 1312s # typedef struct 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # guint prop_id; 1312s # GValue orig_value; /* the value before the change */ 1312s # } ChangedProperty; 1312s # 1312s # static void 1312s # _changed_property_free (ChangedProperty *data) 1312s # { 1312s # g_value_unset (&data->orig_value); 1312s # g_free (data); 1312s # } 1312s # 1312s # static gboolean 1312s # _g_strv_equal0 (gchar **a, gchar **b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # guint n; 1312s # if (a == NULL && b == NULL) 1312s # { 1312s # ret = TRUE; 1312s # goto out; 1312s # } 1312s # if (a == NULL || b == NULL) 1312s # goto out; 1312s # if (g_strv_length (a) != g_strv_length (b)) 1312s # goto out; 1312s # for (n = 0; a[n] != NULL; n++) 1312s # if (g_strcmp0 (a[n], b[n]) != 0) 1312s # goto out; 1312s # ret = TRUE; 1312s # out: 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _g_variant_equal0 (GVariant *a, GVariant *b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # if (a == NULL && b == NULL) 1312s # { 1312s # ret = TRUE; 1312s # goto out; 1312s # } 1312s # if (a == NULL || b == NULL) 1312s # goto out; 1312s # ret = g_variant_equal (a, b); 1312s # out: 1312s # return ret; 1312s # } 1312s # 1312s # G_GNUC_UNUSED static gboolean 1312s # _g_value_equal (const GValue *a, const GValue *b) 1312s # { 1312s # gboolean ret = FALSE; 1312s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1312s # switch (G_VALUE_TYPE (a)) 1312s # { 1312s # case G_TYPE_BOOLEAN: 1312s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1312s # break; 1312s # case G_TYPE_UCHAR: 1312s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1312s # break; 1312s # case G_TYPE_INT: 1312s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1312s # break; 1312s # case G_TYPE_UINT: 1312s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1312s # break; 1312s # case G_TYPE_INT64: 1312s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1312s # break; 1312s # case G_TYPE_UINT64: 1312s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1312s # break; 1312s # case G_TYPE_DOUBLE: 1312s # { 1312s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1312s # gdouble da = g_value_get_double (a); 1312s # gdouble db = g_value_get_double (b); 1312s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1312s # } 1312s # break; 1312s # case G_TYPE_STRING: 1312s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1312s # break; 1312s # case G_TYPE_VARIANT: 1312s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1312s # break; 1312s # default: 1312s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1312s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1312s # else 1312s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1312s # break; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static void 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint G_GNUC_UNUSED, 1312s # void *marshal_data) 1312s # { 1312s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1312s # (void *data1, 1312s # GDBusMethodInvocation *arg_method_invocation, 1312s # void *data2); 1312s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1312s # GCClosure *cc = (GCClosure*) closure; 1312s # void *data1, *data2; 1312s # gboolean v_return; 1312s # 1312s # g_return_if_fail (return_value != NULL); 1312s # g_return_if_fail (n_param_values == 2); 1312s # 1312s # if (G_CCLOSURE_SWAP_DATA (closure)) 1312s # { 1312s # data1 = closure->data; 1312s # data2 = g_value_peek_pointer (param_values + 0); 1312s # } 1312s # else 1312s # { 1312s # data1 = g_value_peek_pointer (param_values + 0); 1312s # data2 = closure->data; 1312s # } 1312s # 1312s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1312s # (marshal_data ? marshal_data : cc->callback); 1312s # 1312s # v_return = 1312s # callback (data1, 1312s # g_marshal_value_peek_object (param_values + 1), 1312s # data2); 1312s # 1312s # g_value_set_boolean (return_value, v_return); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ 1312s # * Code for interface org.project.Bar.Frobnicator 1312s # * ------------------------------------------------------------------------ 1312s # */ 1312s # 1312s # /** 1312s # * SECTION:OrgProjectBarFrobnicator 1312s # * @title: OrgProjectBarFrobnicator 1312s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1312s # * 1312s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1312s # */ 1312s # 1312s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1312s # 1312s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "RandomMethod", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-random-method", 1312s # FALSE 1312s # }; 1312s # 1312s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1312s # { 1312s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "org.project.Bar.Frobnicator", 1312s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "org-project-bar-frobnicator", 1312s # }; 1312s # 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_interface_info: 1312s # * 1312s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1312s # * 1312s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1312s # */ 1312s # GDBusInterfaceInfo * 1312s # org_project_bar_frobnicator_interface_info (void) 1312s # { 1312s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_override_properties: 1312s # * @klass: The class structure for a #GObject derived class. 1312s # * @property_id_begin: The property id to assign to the first overridden property. 1312s # * 1312s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1312s # * The properties are overridden in the order they are defined. 1312s # * 1312s # * Returns: The last property id. 1312s # */ 1312s # guint 1312s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1312s # { 1312s # return property_id_begin - 1; 1312s # } 1312s # 1312s # 1312s # inline static void 1312s # org_project_bar_frobnicator_method_marshal_random_method ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicator: 1312s # * 1312s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorIface: 1312s # * @parent_iface: The parent interface. 1312s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1312s # * 1312s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1312s # */ 1312s # 1312s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1312s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1312s # { 1312s # /* GObject signals for incoming D-Bus method calls: */ 1312s # /** 1312s # * OrgProjectBarFrobnicator::handle-random-method: 1312s # * @object: A #OrgProjectBarFrobnicator. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-random-method", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # org_project_bar_frobnicator_method_marshal_random_method, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_call_random_method ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "RandomMethod", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method_finish: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # org_project_bar_frobnicator_call_random_method_finish ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_call_random_method_sync: 1312s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # org_project_bar_frobnicator_call_random_method_sync ( 1312s # OrgProjectBarFrobnicator *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "RandomMethod", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_complete_random_method: 1312s # * @object: A #OrgProjectBarFrobnicator. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_complete_random_method ( 1312s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorProxy: 1312s # * 1312s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorProxyClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1312s # */ 1312s # 1312s # struct _OrgProjectBarFrobnicatorProxyPrivate 1312s # { 1312s # GData *qdata; 1312s # }; 1312s # 1312s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1312s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1312s # { 1312s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1312s # g_datalist_clear (&proxy->priv->qdata); 1312s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1312s # guint prop_id G_GNUC_UNUSED, 1312s # GValue *value G_GNUC_UNUSED, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1312s # guint prop_id G_GNUC_UNUSED, 1312s # const GValue *value G_GNUC_UNUSED, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1312s # const gchar *sender_name G_GNUC_UNUSED, 1312s # const gchar *signal_name, 1312s # GVariant *parameters) 1312s # { 1312s # _ExtendedGDBusSignalInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # gsize n; 1312s # guint signal_id; 1312s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1312s # if (info == NULL) 1312s # return; 1312s # num_params = g_variant_n_children (parameters); 1312s # paramv = g_new0 (GValue, num_params + 1); 1312s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_set_object (¶mv[0], proxy); 1312s # g_variant_iter_init (&iter, parameters); 1312s # n = 1; 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_signal_emitv (paramv, signal_id, 0, NULL); 1312s # for (n = 0; n < num_params + 1; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1312s # GVariant *changed_properties, 1312s # const gchar *const *invalidated_properties) 1312s # { 1312s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1312s # guint n; 1312s # const gchar *key; 1312s # GVariantIter *iter; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # g_variant_get (changed_properties, "a{sv}", &iter); 1312s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1312s # g_datalist_remove_data (&proxy->priv->qdata, key); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # g_variant_iter_free (iter); 1312s # for (n = 0; invalidated_properties[n] != NULL; n++) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1312s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1312s # #else 1312s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1312s # #endif 1312s # 1312s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusProxyClass *proxy_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1312s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1312s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1312s # 1312s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1312s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1312s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_sync: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # org_project_bar_frobnicator_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorSkeleton: 1312s # * 1312s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * OrgProjectBarFrobnicatorSkeletonClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1312s # */ 1312s # 1312s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1312s # { 1312s # GValue *properties; 1312s # GList *changed_properties; 1312s # GSource *changed_properties_idle_source; 1312s # GMainContext *context; 1312s # GMutex lock; 1312s # }; 1312s # 1312s # static void 1312s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name, 1312s # const gchar *method_name, 1312s # GVariant *parameters, 1312s # GDBusMethodInvocation *invocation, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # _ExtendedGDBusMethodInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # guint num_extra; 1312s # gsize n; 1312s # guint signal_id; 1312s # GValue return_value = G_VALUE_INIT; 1312s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1312s # g_assert (info != NULL); 1312s # num_params = g_variant_n_children (parameters); 1312s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1312s # n = 0; 1312s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_set_object (¶mv[n++], skeleton); 1312s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1312s # g_value_set_object (¶mv[n++], invocation); 1312s # if (info->pass_fdlist) 1312s # { 1312s # #ifdef G_OS_UNIX 1312s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1312s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1312s # #else 1312s # g_assert_not_reached (); 1312s # #endif 1312s # } 1312s # g_variant_iter_init (&iter, parameters); 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1312s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1312s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1312s # if (!g_value_get_boolean (&return_value)) 1312s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1312s # g_value_unset (&return_value); 1312s # for (n = 0; n < num_params + num_extra; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static GVariant * 1312s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *ret; 1312s # ret = NULL; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # g_value_init (&value, pspec->value_type); 1312s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_value_unset (&value); 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GVariant *variant, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # gboolean ret; 1312s # ret = FALSE; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # if (info->use_gvariant) 1312s # g_value_set_variant (&value, variant); 1312s # else 1312s # g_dbus_gvariant_to_gvalue (variant, &value); 1312s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # g_value_unset (&value); 1312s # ret = TRUE; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1312s # { 1312s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1312s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1312s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1312s # {NULL} 1312s # }; 1312s # 1312s # static GDBusInterfaceInfo * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return org_project_bar_frobnicator_interface_info (); 1312s # } 1312s # 1312s # static GDBusInterfaceVTable * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1312s # } 1312s # 1312s # static GVariant * 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1312s # 1312s # GVariantBuilder builder; 1312s # guint n; 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #else 1312s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #endif 1312s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1312s # goto out; 1312s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1312s # { 1312s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1312s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1312s # { 1312s # GVariant *value; 1312s # 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); 1312s # if (value != NULL) 1312s # { 1312s # g_variant_take_ref (value); 1312s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1312s # g_variant_unref (value); 1312s # } 1312s # } 1312s # } 1312s # out: 1312s # return g_variant_builder_end (&builder); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1312s # { 1312s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # g_main_context_unref (skeleton->priv->context); 1312s # g_mutex_clear (&skeleton->priv->lock); 1312s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1312s # #else 1312s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1312s # #endif 1312s # 1312s # g_mutex_init (&skeleton->priv->lock); 1312s # skeleton->priv->context = g_main_context_ref_thread_default (); 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusInterfaceSkeletonClass *skeleton_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1312s # 1312s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1312s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1312s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1312s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1312s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1312s # { 1312s # } 1312s # 1312s # /** 1312s # * org_project_bar_frobnicator_skeleton_new: 1312s # * 1312s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1312s # * 1312s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1312s # */ 1312s # OrgProjectBarFrobnicator * 1312s # org_project_bar_frobnicator_skeleton_new (void) 1312s # { 1312s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ 1312s # * Code for interface com.acme.Coyote 1312s # * ------------------------------------------------------------------------ 1312s # */ 1312s # 1312s # /** 1312s # * SECTION:ComAcmeCoyote 1312s # * @title: ComAcmeCoyote 1312s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1312s # * 1312s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1312s # */ 1312s # 1312s # enum 1312s # { 1312s # _COM_ACME_COYOTE_SURPRISED, 1312s # }; 1312s # 1312s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1312s # 1312s # /* ---- Introspection data for com.acme.Coyote ---- */ 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Run", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-run", 1312s # FALSE 1312s # }; 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Sleep", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-sleep", 1312s # FALSE 1312s # }; 1312s # 1312s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Attack", 1312s # NULL, 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "handle-attack", 1312s # FALSE 1312s # }; 1312s # 1312s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_method_info_run.parent_struct, 1312s # &_com_acme_coyote_method_info_sleep.parent_struct, 1312s # &_com_acme_coyote_method_info_attack.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Surprised", 1312s # NULL, 1312s # NULL 1312s # }, 1312s # "surprised" 1312s # }; 1312s # 1312s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "Mood", 1312s # (gchar *) "s", 1312s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1312s # NULL 1312s # }, 1312s # "mood", 1312s # FALSE, 1312s # TRUE 1312s # }; 1312s # 1312s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1312s # { 1312s # &_com_acme_coyote_property_info_mood.parent_struct, 1312s # NULL 1312s # }; 1312s # 1312s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1312s # { 1312s # { 1312s # -1, 1312s # (gchar *) "com.acme.Coyote", 1312s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1312s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1312s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1312s # NULL 1312s # }, 1312s # "com-acme-coyote", 1312s # }; 1312s # 1312s # 1312s # /** 1312s # * com_acme_coyote_interface_info: 1312s # * 1312s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1312s # * 1312s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1312s # */ 1312s # GDBusInterfaceInfo * 1312s # com_acme_coyote_interface_info (void) 1312s # { 1312s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_override_properties: 1312s # * @klass: The class structure for a #GObject derived class. 1312s # * @property_id_begin: The property id to assign to the first overridden property. 1312s # * 1312s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1312s # * The properties are overridden in the order they are defined. 1312s # * 1312s # * Returns: The last property id. 1312s # */ 1312s # guint 1312s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1312s # { 1312s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1312s # return property_id_begin - 1; 1312s # } 1312s # 1312s # 1312s # inline static void 1312s # com_acme_coyote_signal_marshal_surprised ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # g_cclosure_marshal_VOID__VOID (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_run ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_sleep ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # inline static void 1312s # com_acme_coyote_method_marshal_attack ( 1312s # GClosure *closure, 1312s # GValue *return_value, 1312s # unsigned int n_param_values, 1312s # const GValue *param_values, 1312s # void *invocation_hint, 1312s # void *marshal_data) 1312s # { 1312s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1312s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1312s # } 1312s # 1312s # 1312s # /** 1312s # * ComAcmeCoyote: 1312s # * 1312s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteIface: 1312s # * @parent_iface: The parent interface. 1312s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1312s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1312s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1312s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1312s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1312s # * 1312s # * Virtual table for the D-Bus interface com.acme.Coyote. 1312s # */ 1312s # 1312s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1312s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1312s # 1312s # static void 1312s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # /* GObject signals for incoming D-Bus method calls: */ 1312s # /** 1312s # * ComAcmeCoyote::handle-run: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-run", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_run, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /** 1312s # * ComAcmeCoyote::handle-sleep: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-sleep", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_sleep, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /** 1312s # * ComAcmeCoyote::handle-attack: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: A #GDBusMethodInvocation. 1312s # * 1312s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # g_signal_new ("handle-attack", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1312s # g_signal_accumulator_true_handled, 1312s # NULL, 1312s # com_acme_coyote_method_marshal_attack, 1312s # G_TYPE_BOOLEAN, 1312s # 1, 1312s # G_TYPE_DBUS_METHOD_INVOCATION); 1312s # 1312s # /* GObject signals for received D-Bus signals: */ 1312s # /** 1312s # * ComAcmeCoyote::surprised: 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1312s # * 1312s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1312s # */ 1312s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1312s # g_signal_new ("surprised", 1312s # G_TYPE_FROM_INTERFACE (iface), 1312s # G_SIGNAL_RUN_LAST, 1312s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1312s # NULL, 1312s # NULL, 1312s # com_acme_coyote_signal_marshal_surprised, 1312s # G_TYPE_NONE, 1312s # 0); 1312s # 1312s # /* GObject properties for D-Bus properties: */ 1312s # /** 1312s # * ComAcmeCoyote:mood: 1312s # * 1312s # * Represents the D-Bus property "Mood". 1312s # * 1312s # * 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. 1312s # */ 1312s # g_object_interface_install_property (iface, 1312s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_get_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Gets the value of the "Mood" D-Bus property. 1312s # * 1312s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1312s # * 1312s # * 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. 1312s # * 1312s # * 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. 1312s # */ 1312s # const gchar * 1312s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1312s # 1312s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_dup_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Gets a copy of the "Mood" D-Bus property. 1312s # * 1312s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1312s # * 1312s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1312s # */ 1312s # gchar * 1312s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1312s # { 1312s # gchar *value; 1312s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1312s # return value; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_set_mood: (skip) 1312s # * @object: A #ComAcmeCoyote. 1312s # * @value: The value to set. 1312s # * 1312s # * Sets the "Mood" D-Bus property to @value. 1312s # * 1312s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1312s # */ 1312s # void 1312s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1312s # { 1312s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_emit_surprised: 1312s # * @object: A #ComAcmeCoyote. 1312s # * 1312s # * Emits the "Surprised" D-Bus signal. 1312s # */ 1312s # void 1312s # com_acme_coyote_emit_surprised ( 1312s # ComAcmeCoyote *object) 1312s # { 1312s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_run ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Run", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_run(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_run_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_run_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_run_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Run", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_sleep ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Sleep", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_sleep_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_sleep_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_sleep_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Sleep", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1312s # */ 1312s # void 1312s # com_acme_coyote_call_attack ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1312s # "Attack", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # callback, 1312s # user_data); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack_finish: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_call_attack(). 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_attack_finish ( 1312s # ComAcmeCoyote *proxy, 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_call_attack_sync: 1312s # * @proxy: A #ComAcmeCoyoteProxy. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL. 1312s # * 1312s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1312s # * 1312s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1312s # */ 1312s # gboolean 1312s # com_acme_coyote_call_attack_sync ( 1312s # ComAcmeCoyote *proxy, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GVariant *_ret; 1312s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1312s # "Attack", 1312s # g_variant_new ("()"), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # cancellable, 1312s # error); 1312s # if (_ret == NULL) 1312s # goto _out; 1312s # g_variant_get (_ret, 1312s # "()"); 1312s # g_variant_unref (_ret); 1312s # _out: 1312s # return _ret != NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_run: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_run ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_sleep: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_sleep ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_complete_attack: 1312s # * @object: A #ComAcmeCoyote. 1312s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1312s # * 1312s # * 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. 1312s # * 1312s # * This method will free @invocation, you cannot use it afterwards. 1312s # */ 1312s # void 1312s # com_acme_coyote_complete_attack ( 1312s # ComAcmeCoyote *object G_GNUC_UNUSED, 1312s # GDBusMethodInvocation *invocation) 1312s # { 1312s # g_dbus_method_invocation_return_value (invocation, 1312s # g_variant_new ("()")); 1312s # } 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteProxy: 1312s # * 1312s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteProxyClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #ComAcmeCoyoteProxy. 1312s # */ 1312s # 1312s # struct _ComAcmeCoyoteProxyPrivate 1312s # { 1312s # GData *qdata; 1312s # }; 1312s # 1312s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1312s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # com_acme_coyote_proxy_finalize (GObject *object) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1312s # g_datalist_clear (&proxy->priv->qdata); 1312s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_get_property (GObject *object, 1312s # guint prop_id, 1312s # GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *variant; 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1312s # if (info->use_gvariant) 1312s # { 1312s # g_value_set_variant (value, variant); 1312s # } 1312s # else 1312s # { 1312s # if (variant != NULL) 1312s # g_dbus_gvariant_to_gvalue (variant, value); 1312s # } 1312s # if (variant != NULL) 1312s # g_variant_unref (variant); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1312s # GAsyncResult *res, 1312s # gpointer user_data) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info = user_data; 1312s # GError *error; 1312s # GVariant *_ret; 1312s # error = NULL; 1312s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1312s # if (!_ret) 1312s # { 1312s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1312s # info->parent_struct.name, 1312s # error->message, g_quark_to_string (error->domain), error->code); 1312s # g_error_free (error); 1312s # } 1312s # else 1312s # { 1312s # g_variant_unref (_ret); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_set_property (GObject *object, 1312s # guint prop_id, 1312s # const GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *variant; 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1312s # "org.freedesktop.DBus.Properties.Set", 1312s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1312s # G_DBUS_CALL_FLAGS_NONE, 1312s # -1, 1312s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1312s # g_variant_unref (variant); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1312s # const gchar *sender_name G_GNUC_UNUSED, 1312s # const gchar *signal_name, 1312s # GVariant *parameters) 1312s # { 1312s # _ExtendedGDBusSignalInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # gsize n; 1312s # guint signal_id; 1312s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1312s # if (info == NULL) 1312s # return; 1312s # num_params = g_variant_n_children (parameters); 1312s # paramv = g_new0 (GValue, num_params + 1); 1312s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1312s # g_value_set_object (¶mv[0], proxy); 1312s # g_variant_iter_init (&iter, parameters); 1312s # n = 1; 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1312s # g_signal_emitv (paramv, signal_id, 0, NULL); 1312s # for (n = 0; n < num_params + 1; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1312s # GVariant *changed_properties, 1312s # const gchar *const *invalidated_properties) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1312s # guint n; 1312s # const gchar *key; 1312s # GVariantIter *iter; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # g_variant_get (changed_properties, "a{sv}", &iter); 1312s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1312s # g_datalist_remove_data (&proxy->priv->qdata, key); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # g_variant_iter_free (iter); 1312s # for (n = 0; invalidated_properties[n] != NULL; n++) 1312s # { 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1312s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1312s # if (info != NULL) 1312s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1312s # } 1312s # } 1312s # 1312s # static const gchar * 1312s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1312s # GVariant *variant; 1312s # const gchar *value = NULL; 1312s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1312s # if (variant != NULL) 1312s # { 1312s # value = g_variant_get_string (variant, NULL); 1312s # g_variant_unref (variant); 1312s # } 1312s # return value; 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1312s # #else 1312s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1312s # #endif 1312s # 1312s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusProxyClass *proxy_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1312s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1312s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1312s # 1312s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1312s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1312s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1312s # 1312s # com_acme_coyote_override_properties (gobject_class, 1); 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # com_acme_coyote_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_sync: 1312s # * @connection: A #GDBusConnection. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1312s # * @user_data: User data to pass to @callback. 1312s # * 1312s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1312s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1312s # * 1312s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1312s # */ 1312s # void 1312s # com_acme_coyote_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data) 1312s # { 1312s # 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); 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus_finish: 1312s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error) 1312s # { 1312s # GObject *ret; 1312s # GObject *source_object; 1312s # source_object = g_async_result_get_source_object (res); 1312s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1312s # g_object_unref (source_object); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_proxy_new_for_bus_sync: 1312s # * @bus_type: A #GBusType. 1312s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1312s # * @name: A bus name (well-known or unique). 1312s # * @object_path: An object path. 1312s # * @cancellable: (nullable): A #GCancellable or %NULL. 1312s # * @error: Return location for error or %NULL 1312s # * 1312s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1312s # * 1312s # * The calling thread is blocked until a reply is received. 1312s # * 1312s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error) 1312s # { 1312s # GInitable *ret; 1312s # 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); 1312s # if (ret != NULL) 1312s # return COM_ACME_COYOTE (ret); 1312s # else 1312s # return NULL; 1312s # } 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteSkeleton: 1312s # * 1312s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1312s # */ 1312s # 1312s # /** 1312s # * ComAcmeCoyoteSkeletonClass: 1312s # * @parent_class: The parent class. 1312s # * 1312s # * Class structure for #ComAcmeCoyoteSkeleton. 1312s # */ 1312s # 1312s # struct _ComAcmeCoyoteSkeletonPrivate 1312s # { 1312s # GValue *properties; 1312s # GList *changed_properties; 1312s # GSource *changed_properties_idle_source; 1312s # GMainContext *context; 1312s # GMutex lock; 1312s # }; 1312s # 1312s # static void 1312s # _com_acme_coyote_skeleton_handle_method_call ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name, 1312s # const gchar *method_name, 1312s # GVariant *parameters, 1312s # GDBusMethodInvocation *invocation, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # _ExtendedGDBusMethodInfo *info; 1312s # GVariantIter iter; 1312s # GVariant *child; 1312s # GValue *paramv; 1312s # gsize num_params; 1312s # guint num_extra; 1312s # gsize n; 1312s # guint signal_id; 1312s # GValue return_value = G_VALUE_INIT; 1312s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1312s # g_assert (info != NULL); 1312s # num_params = g_variant_n_children (parameters); 1312s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1312s # n = 0; 1312s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1312s # g_value_set_object (¶mv[n++], skeleton); 1312s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1312s # g_value_set_object (¶mv[n++], invocation); 1312s # if (info->pass_fdlist) 1312s # { 1312s # #ifdef G_OS_UNIX 1312s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1312s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1312s # #else 1312s # g_assert_not_reached (); 1312s # #endif 1312s # } 1312s # g_variant_iter_init (&iter, parameters); 1312s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1312s # { 1312s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1312s # if (arg_info->use_gvariant) 1312s # { 1312s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1312s # g_value_set_variant (¶mv[n], child); 1312s # n++; 1312s # } 1312s # else 1312s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1312s # g_variant_unref (child); 1312s # } 1312s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1312s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1312s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1312s # if (!g_value_get_boolean (&return_value)) 1312s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1312s # g_value_unset (&return_value); 1312s # for (n = 0; n < num_params + num_extra; n++) 1312s # g_value_unset (¶mv[n]); 1312s # g_free (paramv); 1312s # } 1312s # 1312s # static GVariant * 1312s # _com_acme_coyote_skeleton_handle_get_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # GVariant *ret; 1312s # ret = NULL; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # g_value_init (&value, pspec->value_type); 1312s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1312s # g_value_unset (&value); 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static gboolean 1312s # _com_acme_coyote_skeleton_handle_set_property ( 1312s # GDBusConnection *connection G_GNUC_UNUSED, 1312s # const gchar *sender G_GNUC_UNUSED, 1312s # const gchar *object_path G_GNUC_UNUSED, 1312s # const gchar *interface_name G_GNUC_UNUSED, 1312s # const gchar *property_name, 1312s # GVariant *variant, 1312s # GError **error, 1312s # gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GValue value = G_VALUE_INIT; 1312s # GParamSpec *pspec; 1312s # _ExtendedGDBusPropertyInfo *info; 1312s # gboolean ret; 1312s # ret = FALSE; 1312s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1312s # g_assert (info != NULL); 1312s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1312s # if (pspec == NULL) 1312s # { 1312s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1312s # } 1312s # else 1312s # { 1312s # if (info->use_gvariant) 1312s # g_value_set_variant (&value, variant); 1312s # else 1312s # g_dbus_gvariant_to_gvalue (variant, &value); 1312s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1312s # g_value_unset (&value); 1312s # ret = TRUE; 1312s # } 1312s # return ret; 1312s # } 1312s # 1312s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1312s # { 1312s # _com_acme_coyote_skeleton_handle_method_call, 1312s # _com_acme_coyote_skeleton_handle_get_property, 1312s # _com_acme_coyote_skeleton_handle_set_property, 1312s # {NULL} 1312s # }; 1312s # 1312s # static GDBusInterfaceInfo * 1312s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return com_acme_coyote_interface_info (); 1312s # } 1312s # 1312s # static GDBusInterfaceVTable * 1312s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1312s # { 1312s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1312s # } 1312s # 1312s # static GVariant * 1312s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1312s # 1312s # GVariantBuilder builder; 1312s # guint n; 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #else 1312s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # #endif 1312s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1312s # goto out; 1312s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1312s # { 1312s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1312s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1312s # { 1312s # GVariant *value; 1312s # 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); 1312s # if (value != NULL) 1312s # { 1312s # g_variant_take_ref (value); 1312s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1312s # g_variant_unref (value); 1312s # } 1312s # } 1312s # } 1312s # out: 1312s # return g_variant_builder_end (&builder); 1312s # } 1312s # 1312s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1312s # gboolean emit_changed = FALSE; 1312s # 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # { 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # skeleton->priv->changed_properties_idle_source = NULL; 1312s # emit_changed = TRUE; 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # 1312s # if (emit_changed) 1312s # _com_acme_coyote_emit_changed (skeleton); 1312s # } 1312s # 1312s # static void 1312s # _com_acme_coyote_on_signal_surprised ( 1312s # ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # 1312s # GList *connections, *l; 1312s # GVariant *signal_variant; 1312s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1312s # 1312s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1312s # for (l = connections; l != NULL; l = l->next) 1312s # { 1312s # GDBusConnection *connection = l->data; 1312s # g_dbus_connection_emit_signal (connection, 1312s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1312s # signal_variant, NULL); 1312s # } 1312s # g_variant_unref (signal_variant); 1312s # g_list_free_full (connections, g_object_unref); 1312s # } 1312s # 1312s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1312s # 1312s # #else 1312s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1312s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1312s # 1312s # #endif 1312s # static void 1312s # com_acme_coyote_skeleton_finalize (GObject *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # guint n; 1312s # for (n = 0; n < 1; n++) 1312s # g_value_unset (&skeleton->priv->properties[n]); 1312s # g_free (skeleton->priv->properties); 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # if (skeleton->priv->changed_properties_idle_source != NULL) 1312s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1312s # g_main_context_unref (skeleton->priv->context); 1312s # g_mutex_clear (&skeleton->priv->lock); 1312s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_get_property (GObject *object, 1312s # guint prop_id, 1312s # GValue *value, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # } 1312s # 1312s # static gboolean 1312s # _com_acme_coyote_emit_changed (gpointer user_data) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1312s # GList *l; 1312s # GVariantBuilder builder; 1312s # GVariantBuilder invalidated_builder; 1312s # guint num_changes; 1312s # 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1312s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1312s # #else 1312s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1312s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1312s # #endif 1312s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1312s # { 1312s # ChangedProperty *cp = l->data; 1312s # GVariant *variant; 1312s # const GValue *cur_value; 1312s # 1312s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1312s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1312s # { 1312s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1312s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1312s # g_variant_unref (variant); 1312s # num_changes++; 1312s # } 1312s # } 1312s # if (num_changes > 0) 1312s # { 1312s # GList *connections, *ll; 1312s # GVariant *signal_variant; 1312s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1312s # &builder, &invalidated_builder)); 1312s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1312s # for (ll = connections; ll != NULL; ll = ll->next) 1312s # { 1312s # GDBusConnection *connection = ll->data; 1312s # 1312s # g_dbus_connection_emit_signal (connection, 1312s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1312s # "org.freedesktop.DBus.Properties", 1312s # "PropertiesChanged", 1312s # signal_variant, 1312s # NULL); 1312s # } 1312s # g_variant_unref (signal_variant); 1312s # g_list_free_full (connections, g_object_unref); 1312s # } 1312s # else 1312s # { 1312s # g_variant_builder_clear (&builder); 1312s # g_variant_builder_clear (&invalidated_builder); 1312s # } 1312s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1312s # skeleton->priv->changed_properties = NULL; 1312s # skeleton->priv->changed_properties_idle_source = NULL; 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # return FALSE; 1312s # } 1312s # 1312s # static void 1312s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1312s # { 1312s # ChangedProperty *cp; 1312s # GList *l; 1312s # cp = NULL; 1312s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1312s # { 1312s # ChangedProperty *i_cp = l->data; 1312s # if (i_cp->info == info) 1312s # { 1312s # cp = i_cp; 1312s # break; 1312s # } 1312s # } 1312s # if (cp == NULL) 1312s # { 1312s # cp = g_new0 (ChangedProperty, 1); 1312s # cp->prop_id = prop_id; 1312s # cp->info = info; 1312s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1312s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1312s # g_value_copy (orig_value, &cp->orig_value); 1312s # } 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_notify (GObject *object, 1312s # GParamSpec *pspec G_GNUC_UNUSED) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # if (skeleton->priv->changed_properties != NULL && 1312s # skeleton->priv->changed_properties_idle_source == NULL) 1312s # { 1312s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1312s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1312s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1312s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1312s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1312s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_set_property (GObject *object, 1312s # guint prop_id, 1312s # const GValue *value, 1312s # GParamSpec *pspec) 1312s # { 1312s # const _ExtendedGDBusPropertyInfo *info; 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1312s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # g_object_freeze_notify (object); 1312s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1312s # { 1312s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1312s # info->emits_changed_signal) 1312s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1312s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1312s # g_object_notify_by_pspec (object, pspec); 1312s # } 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # g_object_thaw_notify (object); 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1312s # { 1312s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1312s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1312s # #else 1312s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1312s # #endif 1312s # 1312s # g_mutex_init (&skeleton->priv->lock); 1312s # skeleton->priv->context = g_main_context_ref_thread_default (); 1312s # skeleton->priv->properties = g_new0 (GValue, 1); 1312s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1312s # } 1312s # 1312s # static const gchar * 1312s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1312s # { 1312s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1312s # const gchar *value; 1312s # g_mutex_lock (&skeleton->priv->lock); 1312s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1312s # g_mutex_unlock (&skeleton->priv->lock); 1312s # return value; 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1312s # { 1312s # GObjectClass *gobject_class; 1312s # GDBusInterfaceSkeletonClass *skeleton_class; 1312s # 1312s # gobject_class = G_OBJECT_CLASS (klass); 1312s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1312s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1312s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1312s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1312s # 1312s # 1312s # com_acme_coyote_override_properties (gobject_class, 1); 1312s # 1312s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1312s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1312s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1312s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1312s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1312s # 1312s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1312s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1312s # #endif 1312s # } 1312s # 1312s # static void 1312s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1312s # { 1312s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1312s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1312s # } 1312s # 1312s # /** 1312s # * com_acme_coyote_skeleton_new: 1312s # * 1312s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1312s # * 1312s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1312s # */ 1312s # ComAcmeCoyote * 1312s # com_acme_coyote_skeleton_new (void) 1312s # { 1312s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1312s # } 1312s # Error: 1312s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1312s # gdbus-codegen: /usr/bin/gdbus-codegen 1312s # tmpdir: /tmp/tmp0vhv2lma 1312s # /tmp/tmp0vhv2lma/tmpaleykmul.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0vhv2lma/tmpaleykmul.xml', '--output', '-', '--header'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for FDPassing */ 1312s # 1312s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1312s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1312s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1312s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1312s # 1312s # struct _FDPassing; 1312s # typedef struct _FDPassing FDPassing; 1312s # typedef struct _FDPassingIface FDPassingIface; 1312s # 1312s # struct _FDPassingIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # gboolean (*handle_hello_fd) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *arg_greeting); 1312s # 1312s # gboolean (*handle_no_annotation) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale); 1312s # 1312s # gboolean (*handle_no_annotation_nested) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *arg_files); 1312s # 1312s # }; 1312s # 1312s # GType fdpassing_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1312s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void fdpassing_complete_hello_fd ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *response); 1312s # 1312s # void fdpassing_complete_no_annotation ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *response, 1312s # const gchar *response_locale); 1312s # 1312s # void fdpassing_complete_no_annotation_nested ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void fdpassing_call_hello_fd ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GUnixFDList *fd_list, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_hello_fd_finish ( 1312s # FDPassing *proxy, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_hello_fd_sync ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GUnixFDList *fd_list, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_finish ( 1312s # FDPassing *proxy, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation_nested ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_finish ( 1312s # FDPassing *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1312s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1312s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1312s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1312s # 1312s # typedef struct _FDPassingProxy FDPassingProxy; 1312s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1312s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1312s # 1312s # struct _FDPassingProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # FDPassingProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void fdpassing_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1312s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1312s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1312s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1312s # 1312s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1312s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1312s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1312s # 1312s # struct _FDPassingSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # FDPassingSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # FDPassing *fdpassing_skeleton_new (void); 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s # 1312s # /tmp/tmp0vhv2lma/tmpuz86nnc9.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0vhv2lma/tmpuz86nnc9.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for FDPassing */ 1312s # 1312s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1312s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1312s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1312s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1312s # 1312s # struct _FDPassing; 1312s # typedef struct _FDPassing FDPassing; 1312s # typedef struct _FDPassingIface FDPassingIface; 1312s # 1312s # struct _FDPassingIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # gboolean (*handle_hello_fd) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *arg_greeting); 1312s # 1312s # gboolean (*handle_no_annotation) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale); 1312s # 1312s # gboolean (*handle_no_annotation_nested) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *arg_files); 1312s # 1312s # }; 1312s # 1312s # GType fdpassing_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1312s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void fdpassing_complete_hello_fd ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *response); 1312s # 1312s # void fdpassing_complete_no_annotation ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GVariant *response, 1312s # const gchar *response_locale); 1312s # 1312s # void fdpassing_complete_no_annotation_nested ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void fdpassing_call_hello_fd ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GUnixFDList *fd_list, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_hello_fd_finish ( 1312s # FDPassing *proxy, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_hello_fd_sync ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GUnixFDList *fd_list, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_finish ( 1312s # FDPassing *proxy, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation_nested ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_finish ( 1312s # FDPassing *proxy, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1312s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1312s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1312s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1312s # 1312s # typedef struct _FDPassingProxy FDPassingProxy; 1312s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1312s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1312s # 1312s # struct _FDPassingProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # FDPassingProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void fdpassing_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1312s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1312s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1312s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1312s # 1312s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1312s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1312s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1312s # 1312s # struct _FDPassingSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # FDPassingSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # FDPassing *fdpassing_skeleton_new (void); 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s # 1312s # /tmp/tmp0vhv2lma/tmpv54vjghd.xml: 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # 1312s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0vhv2lma/tmpv54vjghd.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1312s # Return code: 0 1312s # Output: 1312s # /* 1312s # * This file is generated by gdbus-codegen, do not modify it. 1312s # * 1312s # * The license of this code is the same as for the D-Bus interface description 1312s # * it was derived from. Note that it links to GLib, so must comply with the 1312s # * LGPL linking clauses. 1312s # */ 1312s # 1312s # #ifndef __STDOUT__ 1312s # #define __STDOUT__ 1312s # 1312s # #include 1312s # 1312s # G_BEGIN_DECLS 1312s # 1312s # 1312s # /* ------------------------------------------------------------------------ */ 1312s # /* Declarations for FDPassing */ 1312s # 1312s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1312s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1312s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1312s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1312s # 1312s # struct _FDPassing; 1312s # typedef struct _FDPassing FDPassing; 1312s # typedef struct _FDPassingIface FDPassingIface; 1312s # 1312s # struct _FDPassingIface 1312s # { 1312s # GTypeInterface parent_iface; 1312s # 1312s # gboolean (*handle_hello_fd) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *arg_greeting); 1312s # 1312s # gboolean (*handle_no_annotation) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale); 1312s # 1312s # gboolean (*handle_no_annotation_nested) ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # GVariant *arg_files); 1312s # 1312s # }; 1312s # 1312s # GType fdpassing_get_type (void) G_GNUC_CONST; 1312s # 1312s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1312s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1312s # 1312s # 1312s # /* D-Bus method call completion functions: */ 1312s # void fdpassing_complete_hello_fd ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # const gchar *response); 1312s # 1312s # void fdpassing_complete_no_annotation ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list, 1312s # GVariant *response, 1312s # const gchar *response_locale); 1312s # 1312s # void fdpassing_complete_no_annotation_nested ( 1312s # FDPassing *object, 1312s # GDBusMethodInvocation *invocation, 1312s # GUnixFDList *fd_list); 1312s # 1312s # 1312s # 1312s # /* D-Bus method calls: */ 1312s # void fdpassing_call_hello_fd ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_hello_fd_finish ( 1312s # FDPassing *proxy, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_hello_fd_sync ( 1312s # FDPassing *proxy, 1312s # const gchar *arg_greeting, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # gchar **out_response, 1312s # GUnixFDList **out_fd_list, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_finish ( 1312s # FDPassing *proxy, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GUnixFDList **out_fd_list, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_greeting, 1312s # const gchar *arg_greeting_locale, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # GVariant **out_response, 1312s # gchar **out_response_locale, 1312s # GUnixFDList **out_fd_list, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_call_no_annotation_nested ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_finish ( 1312s # FDPassing *proxy, 1312s # GUnixFDList **out_fd_list, 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # 1312s # gboolean fdpassing_call_no_annotation_nested_sync ( 1312s # FDPassing *proxy, 1312s # GVariant *arg_files, 1312s # GDBusCallFlags call_flags, 1312s # gint timeout_msec, 1312s # GUnixFDList *fd_list, 1312s # GUnixFDList **out_fd_list, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1312s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1312s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1312s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1312s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1312s # 1312s # typedef struct _FDPassingProxy FDPassingProxy; 1312s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1312s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1312s # 1312s # struct _FDPassingProxy 1312s # { 1312s # /*< private >*/ 1312s # GDBusProxy parent_instance; 1312s # FDPassingProxyPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingProxyClass 1312s # { 1312s # GDBusProxyClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1312s # #endif 1312s # 1312s # void fdpassing_proxy_new ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_sync ( 1312s # GDBusConnection *connection, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # void fdpassing_proxy_new_for_bus ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GAsyncReadyCallback callback, 1312s # gpointer user_data); 1312s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1312s # GAsyncResult *res, 1312s # GError **error); 1312s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1312s # GBusType bus_type, 1312s # GDBusProxyFlags flags, 1312s # const gchar *name, 1312s # const gchar *object_path, 1312s # GCancellable *cancellable, 1312s # GError **error); 1312s # 1312s # 1312s # /* ---- */ 1312s # 1312s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1312s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1312s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1312s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1312s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1312s # 1312s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1312s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1312s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1312s # 1312s # struct _FDPassingSkeleton 1312s # { 1312s # /*< private >*/ 1312s # GDBusInterfaceSkeleton parent_instance; 1312s # FDPassingSkeletonPrivate *priv; 1312s # }; 1312s # 1312s # struct _FDPassingSkeletonClass 1312s # { 1312s # GDBusInterfaceSkeletonClass parent_class; 1312s # }; 1312s # 1312s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1312s # 1312s # #if GLIB_CHECK_VERSION(2, 44, 0) 1312s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1312s # #endif 1312s # 1312s # FDPassing *fdpassing_skeleton_new (void); 1312s # 1312s # 1312s # G_END_DECLS 1312s # 1312s # #endif /* __STDOUT__ */ 1312s # Error: 1312s 1..39 1312s ok - glib/codegen.py.test 1312s # Running test: glib/gdbus-bz627724.test 1312s TAP version 14 1312s # random seed: R02Se974cde033aa742ef0cd1acb95531e3c 1312s 1..1 1312s # Start of gdbus tests 1312s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/home 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/cache 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/system-config2 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/config 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/system-data2 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/data 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/state 1312s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_SPE852/gdbus/bz627724/.dirs/runtime 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 1 /gdbus/bz627724 1312s # End of gdbus tests 1312s ok - glib/gdbus-bz627724.test 1312s # Running test: glib/buffered-output-stream.test 1312s TAP version 14 1312s # random seed: R02S4b5b320776c724f69b3a29be5f6d5c78 1312s 1..5 1312s # Start of buffered-output-stream tests 1312s ok 1 /buffered-output-stream/write 1312s ok 2 /buffered-output-stream/grow 1312s ok 3 /buffered-output-stream/seek 1312s ok 4 /buffered-output-stream/truncate 1312s # End of buffered-output-stream tests 1312s # Start of filter-output-stream tests 1312s ok 5 /filter-output-stream/close 1312s # End of filter-output-stream tests 1312s ok - glib/buffered-output-stream.test 1312s # Running test: glib/task.test 1312s TAP version 14 1312s # random seed: R02S059b7c68c7790677686422089477bb63 1312s 1..36 1312s # Start of gtask tests 1312s ok 1 /gtask/basic 1312s ok 2 /gtask/error 1312s ok 3 /gtask/error-literal 1312s ok 4 /gtask/error-literal-from-variable 1312s ok 5 /gtask/return-from-same-iteration 1312s ok 6 /gtask/return-from-toplevel 1312s ok 7 /gtask/return-from-anon-thread 1312s ok 8 /gtask/return-from-wrong-thread 1312s ok 9 /gtask/no-callback 1312s ok 10 /gtask/report-error 1312s ok 11 /gtask/priority 1312s ok 12 /gtask/name 1312s ok 13 /gtask/static-name 1312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1312s ok 14 /gtask/asynchronous-cancellation 1312s ok 15 /gtask/check-cancellable 1312s ok 16 /gtask/return-if-cancelled 1312s ok 17 /gtask/run-in-thread 1312s ok 18 /gtask/run-in-thread-sync 1312s ok 19 /gtask/run-in-thread-priority 1313s ok 20 /gtask/run-in-thread-nested 1313s ok 21 /gtask/run-in-thread-overflow 1313s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1313s # GLib-GIO-DEBUG: GTask 0xa6c6260 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1313s # GLib-GIO-DEBUG: GTask 0xa6c5c80 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1313s ok 22 /gtask/return-on-cancel 1313s # GLib-GIO-DEBUG: GTask 0xa6c6120 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1313s # GLib-GIO-DEBUG: GTask 0xa6c5fd0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1313s ok 23 /gtask/return-on-cancel-sync 1313s ok 24 /gtask/return-on-cancel-atomic 1313s ok 25 /gtask/return-pointer 1313s ok 26 /gtask/return-value 1313s ok 27 /gtask/return-prefixed-error 1313s ok 28 /gtask/object-keepalive 1313s ok 29 /gtask/legacy-error 1313s ok 30 /gtask/finalize-without-return 1313s # Start of name tests 1313s ok 31 /gtask/name/macro-wrapper 1313s # End of name tests 1313s # Start of return tests 1313s ok 32 /gtask/return/error-first 1313s ok 33 /gtask/return/value-first 1313s # Start of in-idle tests 1313s ok 34 /gtask/return/in-idle/error-first 1313s ok 35 /gtask/return/in-idle/value-first 1313s # End of in-idle tests 1313s # End of return tests 1313s # Start of attach-source tests 1313s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 1313s ok 36 /gtask/attach-source/set-name 1313s # End of attach-source tests 1313s # End of gtask tests 1313s ok - glib/task.test 1313s # Running test: glib/shell.test 1313s TAP version 14 1313s # random seed: R02S15dfb0d9a1cc2dcaa6d7a64235b43f08 1313s 1..51 1313s # Start of shell tests 1313s # Start of cmdline tests 1313s test cmdline: foo bar 1313s ok 1 /shell/cmdline/0 1313s test cmdline: foo 'bar' 1313s ok 2 /shell/cmdline/1 1313s test cmdline: foo "bar" 1313s ok 3 /shell/cmdline/2 1313s test cmdline: foo '' 'bar' 1313s ok 4 /shell/cmdline/3 1313s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1313s ok 5 /shell/cmdline/4 1313s test cmdline: foo blah foo bar baz 1313s ok 6 /shell/cmdline/5 1313s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1313s ok 7 /shell/cmdline/6 1313s test cmdline: foo \ 1313s bar 1313s ok 8 /shell/cmdline/7 1313s test cmdline: foo '' '' 1313s ok 9 /shell/cmdline/8 1313s test cmdline: foo \" la la la 1313s ok 10 /shell/cmdline/9 1313s test cmdline: foo \ foo woo woo\ 1313s ok 11 /shell/cmdline/10 1313s test cmdline: foo "yada yada \$\"" 1313s ok 12 /shell/cmdline/11 1313s test cmdline: foo "c:\\" 1313s ok 13 /shell/cmdline/12 1313s test cmdline: foo # bla bla bla 1313s bar 1313s ok 14 /shell/cmdline/13 1313s test cmdline: foo a#b 1313s ok 15 /shell/cmdline/14 1313s test cmdline: #foo 1313s ok 16 /shell/cmdline/15 1313s test cmdline: foo bar \ 1313s ok 17 /shell/cmdline/16 1313s test cmdline: foo 'bar baz 1313s ok 18 /shell/cmdline/17 1313s test cmdline: foo '"bar" baz 1313s ok 19 /shell/cmdline/18 1313s test cmdline: 1313s ok 20 /shell/cmdline/19 1313s test cmdline: 1313s ok 21 /shell/cmdline/20 1313s test cmdline: # foo bar 1313s ok 22 /shell/cmdline/21 1313s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1313s ok 23 /shell/cmdline/22 1313s # End of cmdline tests 1313s # Start of quote tests 1313s ok 24 /shell/quote/0 1313s ok 25 /shell/quote/1 1313s ok 26 /shell/quote/2 1313s ok 27 /shell/quote/3 1313s ok 28 /shell/quote/4 1313s ok 29 /shell/quote/5 1313s ok 30 /shell/quote/6 1313s # End of quote tests 1313s # Start of unquote tests 1313s ok 31 /shell/unquote/0 1313s ok 32 /shell/unquote/1 1313s ok 33 /shell/unquote/2 1313s ok 34 /shell/unquote/3 1313s ok 35 /shell/unquote/4 1313s ok 36 /shell/unquote/5 1313s ok 37 /shell/unquote/6 1313s ok 38 /shell/unquote/7 1313s ok 39 /shell/unquote/8 1313s ok 40 /shell/unquote/9 1313s ok 41 /shell/unquote/10 1313s ok 42 /shell/unquote/11 1313s ok 43 /shell/unquote/12 1313s ok 44 /shell/unquote/13 1313s ok 45 /shell/unquote/14 1313s ok 46 /shell/unquote/15 1313s ok 47 /shell/unquote/16 1313s ok 48 /shell/unquote/17 1313s ok 49 /shell/unquote/18 1313s ok 50 /shell/unquote/19 1313s ok 51 /shell/unquote/20 1313s # End of unquote tests 1313s # End of shell tests 1313s ok - glib/shell.test 1313s # Running test: glib/completion.test 1313s TAP version 14 1313s # random seed: R02S51d303d911cfa4951dd40f0a337bd13a 1313s 1..1 1313s # Start of completion tests 1313s ok 1 /completion/test-completion 1313s # End of completion tests 1313s ok - glib/completion.test 1313s # Running test: glib/portal-support-none.test 1313s TAP version 14 1313s # random seed: R02S88215e608744dc05f8e1c2792e67bf9a 1313s 1..1 1313s # Start of portal-support tests 1313s ok 1 /portal-support/none 1313s # End of portal-support tests 1313s ok - glib/portal-support-none.test 1313s TAP version 14 1313s # random seed: R02S15ea28a584184880ef7616620449f265 1313s 1..1 1313s # Start of include tests 1313s ok 1 /include/rwlock 1313s # End of include tests 1313s # Running test: glib/include.test 1313s ok - glib/include.test 1313s # Running test: glib/memory-monitor.test 1313s TAP version 14 1313s # random seed: R02S05b31e8a8c118e73d30c5bd2c9a77268 1313s 1..1 1313s # Start of memory-monitor tests 1313s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 1313s ok 1 /memory-monitor/default 1313s # End of memory-monitor tests 1313s TAP version 14 1313s # random seed: R02Saf4d1980f1679a00b99921c79e9e282f 1313s 1..1 1313s # Start of gobject tests 1313s # Start of refcount tests 1313s # init 0x81f5978 1313s # 1313s # init 0x81fda38 1313s # 1313s ok - glib/memory-monitor.test 1313s # Running test: glib/signals-refcount1.test 1314s # Executing: glib/signals-refcount1.test 1318s ok - glib/signals-refcount1.test 1318s # dispose 0x81f5978! 1318s # 1318s # dispose 0x81fda38! 1318s # 1318s ok 1 /gobject/refcount/signals 1318s # slow test /gobject/refcount/signals executed in 5.00 secs 1318s # End of refcount tests 1318s # End of gobject tests 1318s # Running test: glib/unix-fd.test 1318s TAP version 14 1318s # random seed: R02S9fb77ba78a5051c0d64d92668f72c2ee 1318s 1..2 1318s # Start of unix-fd tests 1318s ok 1 /unix-fd/fd-list 1318s ok 2 /unix-fd/scm 1318s # End of unix-fd tests 1318s ok - glib/unix-fd.test 1318s # Running test: glib/fileattributematcher.test 1318s ok - glib/fileattributematcher.test 1318s TAP version 14 1318s # random seed: R02Scd805ab703e58ba2bf965e4ba7bbd63f 1318s 1..3 1318s # Start of fileattributematcher tests 1318s ok 1 /fileattributematcher/exact 1318s ok 2 /fileattributematcher/equality 1318s ok 3 /fileattributematcher/subtract 1318s # End of fileattributematcher tests 1318s # Running test: glib/cache.test 1318s TAP version 14 1318s # random seed: R02S588c509d3722438ca392c6104a79d2db 1318s 1..1 1318s # Start of cache tests 1318s ok 1 /cache/basic 1318s # End of cache tests 1318s ok - glib/cache.test 1318s # Running test: glib/portal-support-env-var.test 1318s ok - glib/portal-support-env-var.test 1318s # Running test: glib/utf8-misc.test 1318s TAP version 14 1318s # random seed: R02S1312aef9bec06a87ede6480c2ce6a8bb 1318s 1..1 1318s # Start of portal-support tests 1318s ok 1 /portal-support/env-var 1318s # End of portal-support tests 1318s TAP version 14 1318s # random seed: R02Scd8c888e8f71f6b3d98a89f9c9107b0b 1318s 1..7 1318s # Start of utf8 tests 1318s ok 1 /utf8/strlen 1318s ok 2 /utf8/strncpy 1318s ok 3 /utf8/strrchr 1318s ok - glib/utf8-misc.test 1318s # Running test: glib/tls-bindings.test 1318s ok - glib/tls-bindings.test 1318s # Running test: glib/gthash.test 1318s ok - glib/gthash.test 1318s # Running test: glib/gdbus-error.test 1318s ok - glib/gdbus-error.test 1318s # Running test: glib/keyfile.test 1318s ok - glib/keyfile.test 1318s ok 4 /utf8/reverse 1318s ok 5 /utf8/substring 1318s ok 6 /utf8/make-valid 1318s ok 7 /utf8/truncate-middle 1318s # End of utf8 tests 1318s TAP version 14 1318s # random seed: R02S9bebb2c3c20969a29d3ef1911d7a79a2 1318s 1..2 1318s # Start of tls-connection tests 1318s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1318s ok 1 /tls-connection/get-tls-channel-binding 1318s ok 2 /tls-connection/get-dtls-channel-binding 1318s # End of tls-connection tests 1318s TAP version 14 1318s # random seed: R02S8320cef0ce37143c36e93ca273f56f9b 1318s 1..1 1318s # Start of gthash tests 1318s ok 1 /gthash/build-retrieve 1318s # End of gthash tests 1318s TAP version 14 1318s # random seed: R02S07ba839b36a5b52d65eeee912c8d61fd 1318s 1..4 1318s # Start of gdbus tests 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_3SHA62/gdbus/registered-errors/.dirs/runtime 1318s ok 1 /gdbus/registered-errors 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_3SHA62/gdbus/unregistered-errors/.dirs/runtime 1318s ok 2 /gdbus/unregistered-errors 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_3SHA62/gdbus/transparent-gerror/.dirs/runtime 1318s ok 3 /gdbus/transparent-gerror 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_3SHA62/gdbus/register-error/.dirs/runtime 1318s ok 4 /gdbus/register-error 1318s # End of gdbus tests 1318s TAP version 14 1318s # random seed: R02Sdb67ed16fba1ec8cbfaa8b61e05a1a79 1318s 1..36 1318s # Start of keyfile tests 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/line-ends/.dirs/runtime 1318s ok 1 /keyfile/line-ends 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/whitespace/.dirs/runtime 1318s ok 2 /keyfile/whitespace 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/comments/.dirs/runtime 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1318s ok 3 /keyfile/comments 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/listing/.dirs/runtime 1318s ok 4 /keyfile/listing 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/home 1318s # Running test: glib/autoptr-girepository.test 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/string/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/string/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/string/.dirs/runtime 1318s ok 5 /keyfile/string 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/boolean/.dirs/runtime 1318s ok 6 /keyfile/boolean 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/number/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/number/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/number/.dirs/runtime 1318s ok 7 /keyfile/number 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/locale-string/.dirs/runtime 1318s ok 8 /keyfile/locale-string 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/lists/.dirs/runtime 1318s ok 9 /keyfile/lists 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/lists-set-get/.dirs/runtime 1318s ok 10 /keyfile/lists-set-get 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/group-remove/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1318s ok 11 /keyfile/group-remove 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/key-remove/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1318s ok 12 /keyfile/key-remove 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/groups/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1318s ok 13 /keyfile/groups 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/duplicate-keys/.dirs/runtime 1318s ok 14 /keyfile/duplicate-keys 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1318s ok 15 /keyfile/duplicate-groups 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/duplicate-groups2/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1318s ok - glib/autoptr-girepository.test 1318s # Running test: glib/win32-appinfo.test 1318s ok - glib/win32-appinfo.test 1318s # Running test: glib/objects-refcount1.test 1318s ok 16 /keyfile/duplicate-groups2 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/group-names/.dirs/runtime 1318s ok 17 /keyfile/group-names 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/key-names/.dirs/runtime 1318s ok 18 /keyfile/key-names 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/reload/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1318s ok 19 /keyfile/reload 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/int64/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1318s ok 20 /keyfile/int64 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/load/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/load/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/load/.dirs/runtime 1318s ok 21 /keyfile/load 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/save/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/save/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/save/.dirs/runtime 1318s ok 22 /keyfile/save 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/load-fail/.dirs/runtime 1318s ok 23 /keyfile/load-fail 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/non-utf8/.dirs/runtime 1318s ok 24 /keyfile/non-utf8 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/page-boundary/.dirs/runtime 1318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1318s ok 25 /keyfile/page-boundary 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/ref/.dirs/runtime 1318s ok 26 /keyfile/ref 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/replace-value/.dirs/runtime 1318s ok 27 /keyfile/replace-value 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/list-separator/.dirs/runtime 1318s ok 28 /keyfile/list-separator 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/empty-string/.dirs/runtime 1318s ok 29 /keyfile/empty-string 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/limbo/.dirs/runtime 1318s ok 30 /keyfile/limbo 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/utf8/.dirs/runtime 1318s # Testing invalid encoding ?non-UTF-8? 1318s # Testing invalid encoding ?UTF? 1318s # Testing invalid encoding ?UTF-9? 1318s ok 31 /keyfile/utf8 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/roundtrip/.dirs/runtime 1318s ok 32 /keyfile/roundtrip 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/bytes/.dirs/runtime 1318s ok 33 /keyfile/bytes 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/get-locale/.dirs/runtime 1318s ok 34 /keyfile/get-locale 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/free-when-not-last-ref/.dirs/runtime 1318s ok 35 /keyfile/free-when-not-last-ref 1318s # Start of locale-string tests 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_UXBA62/keyfile/locale-string/multiple-loads/.dirs/runtime 1318s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1318s ok 36 /keyfile/locale-string/multiple-loads 1318s # End of locale-string tests 1318s # End of keyfile tests 1318s TAP version 14 1318s # random seed: R02S1f6549b7c5ef9b816a9991cd5a000e58 1318s 1..24 1318s # Start of autoptr tests 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/repository/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 1 /autoptr/repository 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/typelib/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 2 /autoptr/typelib 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/base-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 3 /autoptr/base-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/arg-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 4 /autoptr/arg-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/callable-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 5 /autoptr/callable-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/callback-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 6 /autoptr/callback-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/constant-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 7 /autoptr/constant-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/enum-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 8 /autoptr/enum-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/field-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 9 /autoptr/field-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/flags-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 10 /autoptr/flags-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/function-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 11 /autoptr/function-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/interface-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 12 /autoptr/interface-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/object-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 13 /autoptr/object-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/property-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 14 /autoptr/property-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/registered-type-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 15 /autoptr/registered-type-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/signal-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 16 /autoptr/signal-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/struct-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 17 /autoptr/struct-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/type-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 18 /autoptr/type-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/union-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 19 /autoptr/union-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/value-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 20 /autoptr/value-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/autoptr/vfunc-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 21 /autoptr/vfunc-info 1318s # End of autoptr tests 1318s # Start of auto tests 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/auto/arg-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 22 /auto/arg-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/auto/type-info/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 23 /auto/type-info 1318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/home 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/cache 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/system-config2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/config 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/system-data2 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/data 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/state 1318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K49A62/auto/function-invoker/.dirs/runtime 1318s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1318s ok 24 /auto/function-invoker 1318s # End of auto tests 1318s TAP version 14 1318s # random seed: R02Sda9cfd56483dd69be56185dde33955e6 1318s 1..5 1318s # Start of appinfo tests 1318s ok 1 /appinfo/utf16-strfuncs 1318s ok 2 /appinfo/win32-extract-executable 1318s ok 3 /appinfo/win32-rundll32-fixup 1318s ok 4 /appinfo/win32-parse-filename 1318s ok 5 /appinfo/win32-utf16-conversion-fail 1318s # Start of subprocess tests 1318s # End of subprocess tests 1318s # End of appinfo tests 1318s TAP version 14 1318s # random seed: R02S17e06097733dc5b66de44329a6b03ffa 1318s 1..1 1318s # Start of gobject tests 1318s # Start of refcount tests 1318s # init 0x9359158 1318s # 1318s # init 0x9359270 1318s # 1319s # Executing: glib/objects-refcount1.test 1323s ok - glib/objects-refcount1.test 1323s # Running test: glib/protocol.test 1323s # dispose 0x9359158! 1323s # 1323s # dispose 0x9359270! 1323s # 1323s ok 1 /gobject/refcount/object-basics 1323s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1323s # End of refcount tests 1323s # End of gobject tests 1323s ok - glib/protocol.test 1323s # Running test: glib/contexts.test 1323s TAP version 14 1323s # random seed: R02Sc481317645076a958925ead7b67bf991 1323s 1..9 1323s # Start of glib tests 1323s # Start of testing tests 1323s # Start of protocol tests 1323s ok 1 /glib/testing/protocol/debug 1323s ok 2 /glib/testing/protocol/info 1323s ok 3 /glib/testing/protocol/message 1323s ok 4 /glib/testing/protocol/warning 1323s ok 5 /glib/testing/protocol/critical 1323s ok 6 /glib/testing/protocol/error 1323s ok 7 /glib/testing/protocol/gtest-message 1323s ok 8 /glib/testing/protocol/test-message 1323s ok 9 /glib/testing/protocol/test-error 1323s # End of protocol tests 1323s # End of testing tests 1323s # End of glib tests 1323s TAP version 14 1323s # random seed: R02Sc8c13fa6f381fab2ddd96e3160a61cfa 1323s 1..5 1323s # Start of gio tests 1323s # Start of contexts tests 1323s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1323s ok 1 /gio/contexts/thread-independence 1323s ok 2 /gio/contexts/context-independence 1323s # Start of context-specific tests 1323s ok 3 /gio/contexts/context-specific/identity 1323s ok 4 /gio/contexts/context-specific/emit 1323s ok 5 /gio/contexts/context-specific/emit-and-unref 1323s # End of context-specific tests 1323s # End of contexts tests 1323s # End of gio tests 1323s TAP version 14 1323s # random seed: R02S32a71c8de55331f077b0cc749ebc864d 1323s ok - glib/contexts.test 1323s # Running test: glib/gdbus-connection-loss.test 1323s 1..1 1323s # Start of gdbus tests 1323s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/home 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/cache 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/system-config2 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/config 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/system-data2 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/data 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/state 1323s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_3WI652/gdbus/connection-loss/.dirs/runtime 1324s ok - glib/gdbus-connection-loss.test 1324s # Running test: glib/gdbus-subscribe.test 1324s ok 1 /gdbus/connection-loss 1324s # End of gdbus tests 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s TAP version 14 1324s # random seed: R02S31447bbb9bbda5e69c58a669f79bc739 1324s 1..24 1324s # Start of gdbus tests 1324s # Start of subscribe tests 1324s # Start of conn tests 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/simple/.dirs/runtime 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1324s # Step 0: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 1 /gdbus/subscribe/conn/simple 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1324s # Step 0: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: service 2 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: service 2 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 1 1324s # Signal received from service 2 :1.2 1324s # Signal received from service 2 :1.2 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Signal received from service 2 :1.2 1324s # Signal received from service 2 :1.2 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/match_twice/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: (any) 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: (any) 1324s # Path: (any) 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 3: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 4: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 3 /gdbus/subscribe/conn/match_twice 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1324s # Step 0: adding subscription 1324s # Sender: :0.this.had.better.not.exist 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /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 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: org.gtk.Test.OwnedLater 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 3: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 5: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 6: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Step 7: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 5 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1324s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1324s # Step 0: adding subscription 1324s # Sender: org.freedesktop.DBus 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # String argument 0: would I lie to you? 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Waiting for signal to reach message bus 1324s # Step 3: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Signal received from message bus org.freedesktop.DBus 1324s # Signal received from (unused) org.freedesktop.DBus via connection 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Immediately unsubscribing 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1324s # End of conn tests 1324s # Start of proxy tests 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/simple/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1324s # Step 0: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 9 /gdbus/subscribe/proxy/simple 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1324s # Step 0: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: service 2 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: service 2 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: (any) 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: (any) 1324s # Path: (any) 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 3: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 4: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 11 /gdbus/subscribe/proxy/match_twice 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1324s # Step 0: adding subscription 1324s # Sender: :0.this.had.better.not.exist 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /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 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: org.gtk.Test.OwnedLater 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 3: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 5: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 6: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Step 7: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 5 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1324s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1324s # Step 0: adding subscription 1324s # Sender: org.freedesktop.DBus 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # String argument 0: would I lie to you? 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Waiting for signal to reach message bus 1324s # Step 3: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Signal received from message bus org.freedesktop.DBus 1324s # Signal received from (unused) org.freedesktop.DBus via proxy 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1324s # End of proxy tests 1324s # Start of parallel tests 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/simple/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1324s # Step 0: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 17 /gdbus/subscribe/parallel/simple 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1324s # Step 0: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: service 2 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: service 2 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 1 1324s # Signal received from service 2 :1.2 1324s # Signal received from service 2 :1.2 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Signal received from service 2 :1.2 1324s # Signal received from service 2 :1.2 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: adding subscription 1324s # Sender: (any) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: (any) 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: (any) 1324s # Path: (any) 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Cannot subscribe via proxy: no bus name 1324s # Waiting for AddMatch to be processed 1324s # Step 3: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 4: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 4 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1324s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 19 /gdbus/subscribe/parallel/match_twice 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1324s # Step 0: adding subscription 1324s # Sender: service :1.1 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 3: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 3 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1324s # Step 0: adding subscription 1324s # Sender: :0.this.had.better.not.exist 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /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 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 2: adding subscription 1324s # Sender: org.gtk.Test.OwnedLater 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 3: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 4: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 5: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Step 6: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Step 7: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 5 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 5 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via connection 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 7 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1324s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1324s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1324s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1324s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1324s # Step 0: adding subscription 1324s # Sender: org.freedesktop.DBus 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 1: emitting signal 1324s # Sender: attacker 1324s # Destination: (broadcast) 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # String argument 0: would I lie to you? 1324s # Waiting for signal to reach message bus 1324s # Step 2: emitting signal 1324s # Sender: attacker 1324s # Destination: subscriber :1.0 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Waiting for signal to reach message bus 1324s # Step 3: claiming bus name 1324s # Name: org.gtk.Test.OwnedLater 1324s # Owner: service 1324s # Signal received from message bus org.freedesktop.DBus 1324s # Signal received from (unused) org.freedesktop.DBus via connection 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Signal received from message bus org.freedesktop.DBus 1324s # Signal received from (unused) org.freedesktop.DBus via proxy 1324s # Path: /org/freedesktop/DBus 1324s # Interface: org.freedesktop.DBus 1324s # Member: NameOwnerChanged 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1324s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1324s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1324s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1324s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_5WVY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1324s # subscriber is :1.0 1324s # service is :1.1 1324s # service 2 is :1.2 1324s # attacker is :1.3 1324s # Waiting for AddMatch to be processed 1324s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1324s # Step 0: claiming bus name 1324s # Name: org.gtk.Test.AlreadyOwned 1324s # Owner: service 1324s # Step 1: adding subscription 1324s # Sender: org.gtk.Test.AlreadyOwned 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: (any) 1324s # String argument 0: (any) 1324s # Flags: 0 1324s # Subscribing via connection 1324s # Immediately unsubscribing 1324s # Subscribing via proxy 1324s # Waiting for AddMatch to be processed 1324s # Step 2: emitting signal 1324s # Sender: service 1324s # Destination: (broadcast) 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Waiting for signal to reach message bus 1324s ok - glib/gdbus-subscribe.test 1324s # Signal received from service :1.1 1324s # Signal received from service :1.1 via proxy 1324s # Path: /org/gtk/GDBus/ExampleInterface 1324s # Interface: org.gtk.GDBus.ExampleInterface 1324s # Member: Foo 1324s # Argument 0: (not a string) 1324s # Sent in step: 2 1324s # Received Finished signal from subscriber :1.0 1324s # Received Finished signal from service :1.1 1324s # Running test: glib/tls-database.test 1324s # Received Finished signal from service 2 :1.2 1324s # Received Finished signal from attacker :1.3 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1324s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1324s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1324s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1324s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1324s # End of parallel tests 1324s # End of subscribe tests 1324s # End of gdbus tests 1324s ok - glib/tls-database.test 1324s # Running test: glib/rec-mutex.test 1324s TAP version 14 1324s # random seed: R02S9929b92ad30bf2a15a7f996198531de4 1324s 1..1 1324s # Start of tls-backend tests 1324s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1324s ok 1 /tls-backend/set-default-database 1324s # End of tls-backend tests 1324s TAP version 14 1324s # random seed: R02S314c3de3ef3ca0f373501d78614bb8e1 1324s 1..29 1324s # Start of thread tests 1324s ok 1 /thread/rec-mutex1 1324s ok 2 /thread/rec-mutex2 1324s ok 3 /thread/rec-mutex3 1324s ok - glib/rec-mutex.test 1324s # Running test: glib/properties-refcount2.test 1324s ok 4 /thread/rec-mutex4 1324s # Start of rec-mutex tests 1324s # Start of perf tests 1324s # Start of uncontended tests 1324s # max perf: 1.000000 mips 1324s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1324s # max perf: inf mips 1324s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1324s # max perf: inf mips 1324s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1324s # max perf: 1.000000 mips 1324s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1324s # max perf: inf mips 1324s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1324s # End of uncontended tests 1324s # Start of contended1 tests 1324s # max perf: inf mips 1324s ok 10 /thread/rec-mutex/perf/contended1/depth1 1324s # max perf: inf mips 1324s ok 11 /thread/rec-mutex/perf/contended1/depth2 1324s # max perf: inf mips 1324s ok 12 /thread/rec-mutex/perf/contended1/depth3 1324s # max perf: 2.000000 mips 1324s ok 13 /thread/rec-mutex/perf/contended1/depth4 1324s # max perf: 2.000000 mips 1324s ok 14 /thread/rec-mutex/perf/contended1/depth5 1324s # End of contended1 tests 1324s # Start of contended2 tests 1324s # max perf: 1.500000 mips 1324s ok 15 /thread/rec-mutex/perf/contended2/depth1 1324s # max perf: 3.000000 mips 1324s ok 16 /thread/rec-mutex/perf/contended2/depth2 1324s # max perf: 3.000000 mips 1324s ok 17 /thread/rec-mutex/perf/contended2/depth3 1324s # max perf: 3.000000 mips 1324s ok 18 /thread/rec-mutex/perf/contended2/depth4 1324s # max perf: 3.000000 mips 1324s ok 19 /thread/rec-mutex/perf/contended2/depth5 1324s # End of contended2 tests 1324s # Start of contended3 tests 1324s # max perf: 4.000000 mips 1324s ok 20 /thread/rec-mutex/perf/contended3/depth1 1324s # max perf: 0.363636 mips 1324s ok 21 /thread/rec-mutex/perf/contended3/depth2 1324s # max perf: 1.333333 mips 1324s ok 22 /thread/rec-mutex/perf/contended3/depth3 1324s # max perf: 1.000000 mips 1324s ok 23 /thread/rec-mutex/perf/contended3/depth4 1324s # max perf: 1.000000 mips 1324s ok 24 /thread/rec-mutex/perf/contended3/depth5 1324s # End of contended3 tests 1324s # Start of contended4 tests 1324s # max perf: 1.666667 mips 1324s ok 25 /thread/rec-mutex/perf/contended4/depth1 1324s # max perf: 0.138889 mips 1324s ok 26 /thread/rec-mutex/perf/contended4/depth2 1324s # max perf: 2.500000 mips 1324s ok 27 /thread/rec-mutex/perf/contended4/depth3 1324s # max perf: 0.384615 mips 1324s ok 28 /thread/rec-mutex/perf/contended4/depth4 1324s # max perf: 0.384615 mips 1324s ok 29 /thread/rec-mutex/perf/contended4/depth5 1324s # End of contended4 tests 1324s # End of perf tests 1324s # End of rec-mutex tests 1324s # End of thread tests 1324s TAP version 14 1324s # random seed: R02Sed9b53d21191851e81721852bd980743 1324s 1..1 1324s # Start of gobject tests 1324s # Start of refcount tests 1324s # init 0x4b66730 1324s # 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # Executing: glib/properties-refcount2.test 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1324s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # . 1325s # dispose 0x4b66730! 1325s # 1325s ok 1 /gobject/refcount/properties-2 1325s # slow test /gobject/refcount/properties-2 executed in 1.50 secs 1325s # End of refcount tests 1325s # End of gobject tests 1325s ok - glib/properties-refcount2.test 1325s # Running test: glib/null-settings-backend.test 1325s TAP version 14 1325s # random seed: R02S37ac32420e94c349caa896be6e842f39 1325s 1..1 1325s # Start of null-settings-backend tests 1325s ok 1 /null-settings-backend/extension-point-registered 1325s # End of null-settings-backend tests 1325s ok - glib/null-settings-backend.test 1325s # Running test: glib/642026-ec.test 1325s TAP version 14 1325s # random seed: R02S19033c0aa267749ce085b3069835f6c4 1325s 1..1 1325s # Start of glib tests 1325s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1325s ok 1 /glib/642026 1325s # End of glib tests 1325s ok - glib/642026-ec.test 1325s # Running test: glib/binding.test 1325s TAP version 14 1325s # random seed: R02S6f65a57c60a94caa3b828995b8e6ac36 1325s 1..19 1325s # Start of binding tests 1325s ok 1 /binding/default 1325s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1325s ok 2 /binding/canonicalisation 1325s ok 3 /binding/bidirectional 1325s ok 4 /binding/transform 1325s ok 5 /binding/transform-default 1325s ok 6 /binding/transform-closure 1325s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1325s ok 7 /binding/chain 1325s ok 8 /binding/sync-create 1325s ok 9 /binding/invert-boolean 1325s ok 10 /binding/same-object 1325s ok 11 /binding/unbind 1325s ok 12 /binding/unbind-weak 1325s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1325s ok 13 /binding/unbind-multiple 1325s ok 14 /binding/fail 1325s ok 15 /binding/interface 1325s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1325s ok 16 /binding/concurrent-unbind 1325s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1325s ok 17 /binding/concurrent-finalizing 1325s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1325s ok 18 /binding/dispose-source 1325s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1325s ok 19 /binding/dispose-target 1325s # End of binding tests 1325s ok - glib/binding.test 1325s # Running test: glib/strfuncs.test 1325s TAP version 14 1325s # random seed: R02S91b1342d4901248dc11c888c92510b75 1325s 1..51 1325s # Start of strfuncs tests 1325s ok 1 /strfuncs/ascii-strcasecmp 1325s ok 2 /strfuncs/ascii_strdown 1325s ok 3 /strfuncs/ascii_strdup 1325s ok 4 /strfuncs/ascii_strtod 1325s ok 5 /strfuncs/bounds-check 1325s ok 6 /strfuncs/has-prefix 1325s ok 7 /strfuncs/has-prefix-macro 1325s ok 8 /strfuncs/has-suffix 1325s ok 9 /strfuncs/has-suffix-macro 1325s ok 10 /strfuncs/memdup 1325s ok 11 /strfuncs/memdup2 1325s ok 12 /strfuncs/set_str 1325s ok 13 /strfuncs/stpcpy 1325s ok 14 /strfuncs/str_match_string 1325s ok 15 /strfuncs/str_tokenize_and_fold 1325s ok 16 /strfuncs/strcanon 1325s ok 17 /strfuncs/strchomp 1325s ok 18 /strfuncs/strchug 1325s ok 19 /strfuncs/strcompress-strescape 1325s ok 20 /strfuncs/strconcat 1325s ok 21 /strfuncs/strdelimit 1325s ok 22 /strfuncs/strdup 1325s ok 23 /strfuncs/strdup-printf 1325s ok 24 /strfuncs/strdupv 1325s ok 25 /strfuncs/strerror 1325s ok 26 /strfuncs/strip-context 1325s ok 27 /strfuncs/strjoin 1325s ok 28 /strfuncs/strjoinv 1325s ok 29 /strfuncs/strlcat 1325s ok 30 /strfuncs/strlcpy 1325s ok 31 /strfuncs/strncasecmp 1325s ok 32 /strfuncs/strndup 1325s ok 33 /strfuncs/strnfill 1325s ok 34 /strfuncs/strreverse 1325s ok 35 /strfuncs/strsignal 1325s ok 36 /strfuncs/strsplit 1325s ok 37 /strfuncs/strsplit-set 1325s ok 38 /strfuncs/strstr 1325s ok 39 /strfuncs/strtod 1325s ok 40 /strfuncs/strtoull-strtoll 1325s ok 41 /strfuncs/strup 1325s ok 42 /strfuncs/strv-contains 1325s ok 43 /strfuncs/strv-equal 1325s ok 44 /strfuncs/strv-length 1325s ok 45 /strfuncs/test-is-to-digit 1325s ok 46 /strfuncs/transliteration 1325s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1325s ok 47 /strfuncs/str-equal 1325s ok 48 /strfuncs/str-is-ascii 1325s # Start of ascii-string-to-num tests 1325s ok 49 /strfuncs/ascii-string-to-num/pathological 1325s ok 50 /strfuncs/ascii-string-to-num/usual 1325s # End of ascii-string-to-num tests 1325s # Start of strdup tests 1325s ok 51 /strfuncs/strdup/inline 1325s # End of strdup tests 1325s # End of strfuncs tests 1325s ok - glib/strfuncs.test 1325s # Running test: glib/gdbus-export.test 1325s TAP version 14 1325s # random seed: R02S7d4076c1baa71f79c5a9793e2d58a593 1325s 1..7 1325s # Start of gdbus tests 1325s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/home 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/cache 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/system-config2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/config 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/system-data2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/data 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/state 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/object-registration/.dirs/runtime 1325s ok 1 /gdbus/object-registration 1325s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/home 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/cache 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/system-config2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/config 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/system-data2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/data 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/state 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures/.dirs/runtime 1325s ok 2 /gdbus/object-registration-with-closures 1325s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/home 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/cache 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/system-config2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/config 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/system-data2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/data 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/state 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/object-registration-with-closures2/.dirs/runtime 1325s ok 3 /gdbus/object-registration-with-closures2 1325s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/home 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/cache 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/system-config2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/config 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/system-data2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/data 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/state 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/registered-interfaces/.dirs/runtime 1325s ok 4 /gdbus/registered-interfaces 1325s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/home 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/cache 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/system-config2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/config 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/system-data2 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/data 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/state 1325s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/async-properties/.dirs/runtime 1326s ok 5 /gdbus/async-properties 1326s # Start of threaded-unregistration tests 1326s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/home 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/cache 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/system-config2 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/config 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/system-data2 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/data 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/state 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/object/.dirs/runtime 1326s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1326s # /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 1327s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (15 iterations with unregistration first, 985 with call first); skipping test 1327s # slow test /gdbus/threaded-unregistration/object executed in 1.36 secs 1327s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/home 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/cache 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/config 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/data 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/state 1327s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BWM652/gdbus/threaded-unregistration/subtree/.dirs/runtime 1327s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1327s # /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 1328s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (52 iterations with unregistration first, 948 with call first); skipping test 1328s # slow test /gdbus/threaded-unregistration/subtree executed in 1.61 secs 1328s # End of threaded-unregistration tests 1328s # End of gdbus tests 1328s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1328s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1328s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1328s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1328s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1328s ok - glib/gdbus-export.test 1328s # Running test: glib/init.test 1328s TAP version 14 1328s # random seed: R02S336e33175fd1193e91bfd8d39c9392f2 1328s 1..2 1328s # Start of thread tests 1328s # Start of deprecated tests 1328s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/home 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/cache 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_2Z3552/thread/deprecated/init/.dirs/system-config2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/config 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_2Z3552/thread/deprecated/init/.dirs/system-data2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/data 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/state 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_2Z3552/thread/deprecated/init/.dirs/runtime 1328s ok - glib/init.test 1328s ok 1 /thread/deprecated/init 1328s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_2Z3552/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1328s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1328s # End of deprecated tests 1328s # End of thread tests 1328s # Running test: glib/gdbus-server-auth.test 1328s TAP version 14 1328s # random seed: R02Sac120384969d0d0273ccfedd09878a86 1328s 1..9 1328s # Start of gdbus tests 1328s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/home 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/cache 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/system-config2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/config 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/system-data2 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/data 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/state 1328s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/.dirs/runtime 1329s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-YYA752 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1329s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-YYA752/dbus-7wEoaQwE 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 14664 1329s ok 1 /gdbus/server-auth 1329s # Start of server-auth tests 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/abstract/.dirs/runtime 1329s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-SCZ652 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1329s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-SCZ652/dbus-5XUWQVAU 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 14664 1329s ok - glib/gdbus-server-auth.test 1329s # Running test: glib/checksum.test 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1329s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1329s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 14664 1329s ok 2 /gdbus/server-auth/abstract 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/tcp/.dirs/runtime 1329s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1329s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/.dirs/runtime 1329s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-4F4452 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1329s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-4F4452/dbus-mEv3kd1G 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 14664 1329s ok 4 /gdbus/server-auth/anonymous 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/.dirs/runtime 1329s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-3Q6X52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1329s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-3Q6X52/dbus-JDtsWGhG 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 14664 1329s ok 5 /gdbus/server-auth/external 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/.dirs/runtime 1329s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-RUQX52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1329s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1329s # Start of anonymous tests 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1329s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1329s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1329s # End of anonymous tests 1329s # Start of external tests 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/external/require-same-user/.dirs/runtime 1329s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-JHQX52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1329s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9LB752/gdbus-server-auth-JHQX52/dbus-lV6dVkrL 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 14664 1329s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1329s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1329s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1329s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=14664,uid=1000,gid=1000 1329s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 14664 1329s ok 8 /gdbus/server-auth/external/require-same-user 1329s # End of external tests 1329s # Start of sha1 tests 1329s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/home 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/cache 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/config 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/data 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/state 1329s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9LB752/gdbus/server-auth/sha1/tcp/.dirs/runtime 1329s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1329s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1329s # End of sha1 tests 1329s # End of server-auth tests 1329s # End of gdbus tests 1329s TAP version 14 1329s # random seed: R02S378cfae26c3f927a858f00f5898837c3 1329s 1..1851 1329s # Start of checksum tests 1329s ok 1 /checksum/unsupported 1329s # Start of MD5 tests 1329s ok 2 /checksum/MD5/0 1329s ok 3 /checksum/MD5/1 1329s ok 4 /checksum/MD5/2 1329s ok 5 /checksum/MD5/3 1329s ok 6 /checksum/MD5/4 1329s ok 7 /checksum/MD5/5 1329s ok 8 /checksum/MD5/6 1329s ok 9 /checksum/MD5/7 1329s ok 10 /checksum/MD5/8 1329s ok 11 /checksum/MD5/9 1329s ok 12 /checksum/MD5/10 1329s ok 13 /checksum/MD5/11 1329s ok 14 /checksum/MD5/12 1329s ok 15 /checksum/MD5/13 1329s ok 16 /checksum/MD5/14 1329s ok 17 /checksum/MD5/15 1329s ok 18 /checksum/MD5/16 1329s ok 19 /checksum/MD5/17 1329s ok 20 /checksum/MD5/18 1329s ok 21 /checksum/MD5/19 1329s ok 22 /checksum/MD5/20 1329s ok 23 /checksum/MD5/21 1329s ok 24 /checksum/MD5/22 1329s ok 25 /checksum/MD5/23 1329s ok 26 /checksum/MD5/24 1329s ok 27 /checksum/MD5/25 1329s ok 28 /checksum/MD5/26 1329s ok 29 /checksum/MD5/27 1329s ok 30 /checksum/MD5/28 1329s ok 31 /checksum/MD5/29 1329s ok 32 /checksum/MD5/30 1329s ok 33 /checksum/MD5/31 1329s ok 34 /checksum/MD5/32 1329s ok 35 /checksum/MD5/33 1329s ok 36 /checksum/MD5/34 1329s ok 37 /checksum/MD5/35 1329s ok 38 /checksum/MD5/36 1329s ok 39 /checksum/MD5/37 1329s ok 40 /checksum/MD5/38 1329s ok 41 /checksum/MD5/39 1329s ok 42 /checksum/MD5/40 1329s ok 43 /checksum/MD5/41 1329s ok 44 /checksum/MD5/42 1329s ok 45 /checksum/MD5/43 1329s ok 46 /checksum/MD5/44 1329s ok 47 /checksum/MD5/45 1329s ok 48 /checksum/MD5/46 1329s ok 49 /checksum/MD5/47 1329s ok 50 /checksum/MD5/48 1329s ok 51 /checksum/MD5/49 1329s ok 52 /checksum/MD5/50 1329s ok 53 /checksum/MD5/51 1329s ok 54 /checksum/MD5/52 1329s ok 55 /checksum/MD5/53 1329s ok 56 /checksum/MD5/54 1329s ok 57 /checksum/MD5/55 1329s ok 58 /checksum/MD5/56 1329s ok 59 /checksum/MD5/57 1329s ok 60 /checksum/MD5/58 1329s ok 61 /checksum/MD5/59 1329s ok 62 /checksum/MD5/60 1329s ok 63 /checksum/MD5/61 1329s ok 64 /checksum/MD5/62 1329s ok 65 /checksum/MD5/63 1329s ok 66 /checksum/MD5/64 1329s ok 67 /checksum/MD5/65 1329s ok 68 /checksum/MD5/66 1329s ok 69 /checksum/MD5/67 1329s ok 70 /checksum/MD5/68 1329s ok 71 /checksum/MD5/69 1329s ok 72 /checksum/MD5/70 1329s ok 73 /checksum/MD5/71 1329s ok 74 /checksum/MD5/72 1329s ok 75 /checksum/MD5/73 1329s ok 76 /checksum/MD5/74 1329s ok 77 /checksum/MD5/75 1329s ok 78 /checksum/MD5/76 1329s ok 79 /checksum/MD5/77 1329s ok 80 /checksum/MD5/78 1329s ok 81 /checksum/MD5/79 1329s ok 82 /checksum/MD5/80 1329s ok 83 /checksum/MD5/81 1329s ok 84 /checksum/MD5/82 1329s ok 85 /checksum/MD5/83 1329s ok 86 /checksum/MD5/84 1329s ok 87 /checksum/MD5/85 1329s ok 88 /checksum/MD5/86 1329s ok 89 /checksum/MD5/87 1329s ok 90 /checksum/MD5/88 1329s ok 91 /checksum/MD5/89 1329s ok 92 /checksum/MD5/90 1329s ok 93 /checksum/MD5/91 1329s ok 94 /checksum/MD5/92 1329s ok 95 /checksum/MD5/93 1329s ok 96 /checksum/MD5/94 1329s ok 97 /checksum/MD5/95 1329s ok 98 /checksum/MD5/96 1329s ok 99 /checksum/MD5/97 1329s ok 100 /checksum/MD5/98 1329s ok 101 /checksum/MD5/99 1329s ok 102 /checksum/MD5/100 1329s ok 103 /checksum/MD5/101 1329s ok 104 /checksum/MD5/102 1329s ok 105 /checksum/MD5/103 1329s ok 106 /checksum/MD5/104 1329s ok 107 /checksum/MD5/105 1329s ok 108 /checksum/MD5/106 1329s ok 109 /checksum/MD5/107 1329s ok 110 /checksum/MD5/108 1329s ok 111 /checksum/MD5/109 1329s ok 112 /checksum/MD5/110 1329s ok 113 /checksum/MD5/111 1329s ok 114 /checksum/MD5/112 1329s ok 115 /checksum/MD5/113 1329s ok 116 /checksum/MD5/114 1329s ok 117 /checksum/MD5/115 1329s ok 118 /checksum/MD5/116 1329s ok 119 /checksum/MD5/117 1329s ok 120 /checksum/MD5/118 1329s ok 121 /checksum/MD5/119 1329s ok 122 /checksum/MD5/120 1329s ok 123 /checksum/MD5/121 1329s ok 124 /checksum/MD5/122 1329s ok 125 /checksum/MD5/123 1329s ok 126 /checksum/MD5/124 1329s ok 127 /checksum/MD5/125 1329s ok 128 /checksum/MD5/126 1329s ok 129 /checksum/MD5/127 1329s ok 130 /checksum/MD5/128 1329s ok 131 /checksum/MD5/129 1329s ok 132 /checksum/MD5/130 1329s ok 133 /checksum/MD5/131 1329s ok 134 /checksum/MD5/132 1329s ok 135 /checksum/MD5/133 1329s ok 136 /checksum/MD5/134 1329s ok 137 /checksum/MD5/135 1329s ok 138 /checksum/MD5/136 1329s ok 139 /checksum/MD5/137 1329s ok 140 /checksum/MD5/138 1329s ok 141 /checksum/MD5/139 1329s ok 142 /checksum/MD5/140 1329s ok 143 /checksum/MD5/141 1329s ok 144 /checksum/MD5/142 1329s ok 145 /checksum/MD5/143 1329s ok 146 /checksum/MD5/144 1329s ok 147 /checksum/MD5/145 1329s ok 148 /checksum/MD5/146 1329s ok 149 /checksum/MD5/147 1329s ok 150 /checksum/MD5/148 1329s ok 151 /checksum/MD5/149 1329s ok 152 /checksum/MD5/150 1329s ok 153 /checksum/MD5/151 1329s ok 154 /checksum/MD5/152 1329s ok 155 /checksum/MD5/153 1329s ok 156 /checksum/MD5/154 1329s ok 157 /checksum/MD5/155 1329s ok 158 /checksum/MD5/156 1329s ok 159 /checksum/MD5/157 1329s ok 160 /checksum/MD5/158 1329s ok 161 /checksum/MD5/159 1329s ok 162 /checksum/MD5/160 1329s ok 163 /checksum/MD5/161 1329s ok 164 /checksum/MD5/162 1329s ok 165 /checksum/MD5/163 1329s ok 166 /checksum/MD5/164 1329s ok 167 /checksum/MD5/165 1329s ok 168 /checksum/MD5/166 1329s ok 169 /checksum/MD5/167 1329s ok 170 /checksum/MD5/168 1329s ok 171 /checksum/MD5/169 1329s ok 172 /checksum/MD5/170 1329s ok 173 /checksum/MD5/171 1329s ok 174 /checksum/MD5/172 1329s ok 175 /checksum/MD5/173 1329s ok 176 /checksum/MD5/174 1329s ok 177 /checksum/MD5/175 1329s ok 178 /checksum/MD5/176 1329s ok 179 /checksum/MD5/177 1329s ok 180 /checksum/MD5/178 1329s ok 181 /checksum/MD5/179 1329s ok 182 /checksum/MD5/180 1329s ok 183 /checksum/MD5/181 1329s ok 184 /checksum/MD5/182 1329s ok 185 /checksum/MD5/183 1329s ok 186 /checksum/MD5/string 1329s ok 187 /checksum/MD5/bytes 1329s # Start of reset tests 1329s ok 188 /checksum/MD5/reset/0 1329s ok 189 /checksum/MD5/reset/1 1329s ok 190 /checksum/MD5/reset/2 1329s ok 191 /checksum/MD5/reset/3 1329s ok 192 /checksum/MD5/reset/4 1329s ok 193 /checksum/MD5/reset/5 1329s ok 194 /checksum/MD5/reset/6 1329s ok 195 /checksum/MD5/reset/7 1329s ok 196 /checksum/MD5/reset/8 1329s ok 197 /checksum/MD5/reset/9 1329s ok 198 /checksum/MD5/reset/10 1329s ok 199 /checksum/MD5/reset/11 1329s ok 200 /checksum/MD5/reset/12 1329s ok 201 /checksum/MD5/reset/13 1329s ok 202 /checksum/MD5/reset/14 1329s ok 203 /checksum/MD5/reset/15 1329s ok 204 /checksum/MD5/reset/16 1329s ok 205 /checksum/MD5/reset/17 1329s ok 206 /checksum/MD5/reset/18 1329s ok 207 /checksum/MD5/reset/19 1329s ok 208 /checksum/MD5/reset/20 1329s ok 209 /checksum/MD5/reset/21 1329s ok 210 /checksum/MD5/reset/22 1329s ok 211 /checksum/MD5/reset/23 1329s ok 212 /checksum/MD5/reset/24 1329s ok 213 /checksum/MD5/reset/25 1329s ok 214 /checksum/MD5/reset/26 1329s ok 215 /checksum/MD5/reset/27 1329s ok 216 /checksum/MD5/reset/28 1329s ok 217 /checksum/MD5/reset/29 1329s ok 218 /checksum/MD5/reset/30 1329s ok 219 /checksum/MD5/reset/31 1329s ok 220 /checksum/MD5/reset/32 1329s ok 221 /checksum/MD5/reset/33 1329s ok 222 /checksum/MD5/reset/34 1329s ok 223 /checksum/MD5/reset/35 1329s ok 224 /checksum/MD5/reset/36 1329s ok 225 /checksum/MD5/reset/37 1329s ok 226 /checksum/MD5/reset/38 1329s ok 227 /checksum/MD5/reset/39 1329s ok 228 /checksum/MD5/reset/40 1329s ok 229 /checksum/MD5/reset/41 1329s ok 230 /checksum/MD5/reset/42 1329s ok 231 /checksum/MD5/reset/43 1329s ok 232 /checksum/MD5/reset/44 1329s ok 233 /checksum/MD5/reset/45 1329s ok 234 /checksum/MD5/reset/46 1329s ok 235 /checksum/MD5/reset/47 1329s ok 236 /checksum/MD5/reset/48 1329s ok 237 /checksum/MD5/reset/49 1329s ok 238 /checksum/MD5/reset/50 1329s ok 239 /checksum/MD5/reset/51 1329s ok 240 /checksum/MD5/reset/52 1329s ok 241 /checksum/MD5/reset/53 1329s ok 242 /checksum/MD5/reset/54 1329s ok 243 /checksum/MD5/reset/55 1329s ok 244 /checksum/MD5/reset/56 1329s ok 245 /checksum/MD5/reset/57 1329s ok 246 /checksum/MD5/reset/58 1329s ok 247 /checksum/MD5/reset/59 1329s ok 248 /checksum/MD5/reset/60 1329s ok 249 /checksum/MD5/reset/61 1329s ok 250 /checksum/MD5/reset/62 1329s ok 251 /checksum/MD5/reset/63 1329s ok 252 /checksum/MD5/reset/64 1329s ok 253 /checksum/MD5/reset/65 1329s ok 254 /checksum/MD5/reset/66 1329s ok 255 /checksum/MD5/reset/67 1329s ok 256 /checksum/MD5/reset/68 1329s ok 257 /checksum/MD5/reset/69 1329s ok 258 /checksum/MD5/reset/70 1329s ok 259 /checksum/MD5/reset/71 1329s ok 260 /checksum/MD5/reset/72 1329s ok 261 /checksum/MD5/reset/73 1329s ok 262 /checksum/MD5/reset/74 1329s ok 263 /checksum/MD5/reset/75 1329s ok 264 /checksum/MD5/reset/76 1329s ok 265 /checksum/MD5/reset/77 1329s ok 266 /checksum/MD5/reset/78 1329s ok 267 /checksum/MD5/reset/79 1329s ok 268 /checksum/MD5/reset/80 1329s ok 269 /checksum/MD5/reset/81 1329s ok 270 /checksum/MD5/reset/82 1329s ok 271 /checksum/MD5/reset/83 1329s ok 272 /checksum/MD5/reset/84 1329s ok 273 /checksum/MD5/reset/85 1329s ok 274 /checksum/MD5/reset/86 1329s ok 275 /checksum/MD5/reset/87 1329s ok 276 /checksum/MD5/reset/88 1329s ok 277 /checksum/MD5/reset/89 1329s ok 278 /checksum/MD5/reset/90 1329s ok 279 /checksum/MD5/reset/91 1329s ok 280 /checksum/MD5/reset/92 1329s ok 281 /checksum/MD5/reset/93 1329s ok 282 /checksum/MD5/reset/94 1329s ok 283 /checksum/MD5/reset/95 1329s ok 284 /checksum/MD5/reset/96 1329s ok 285 /checksum/MD5/reset/97 1329s ok 286 /checksum/MD5/reset/98 1329s ok 287 /checksum/MD5/reset/99 1329s ok 288 /checksum/MD5/reset/100 1329s ok 289 /checksum/MD5/reset/101 1329s ok 290 /checksum/MD5/reset/102 1329s ok 291 /checksum/MD5/reset/103 1329s ok 292 /checksum/MD5/reset/104 1329s ok 293 /checksum/MD5/reset/105 1329s ok 294 /checksum/MD5/reset/106 1329s ok 295 /checksum/MD5/reset/107 1329s ok 296 /checksum/MD5/reset/108 1329s ok 297 /checksum/MD5/reset/109 1329s ok 298 /checksum/MD5/reset/110 1329s ok 299 /checksum/MD5/reset/111 1329s ok 300 /checksum/MD5/reset/112 1329s ok 301 /checksum/MD5/reset/113 1329s ok 302 /checksum/MD5/reset/114 1329s ok 303 /checksum/MD5/reset/115 1329s ok 304 /checksum/MD5/reset/116 1329s ok 305 /checksum/MD5/reset/117 1329s ok 306 /checksum/MD5/reset/118 1329s ok 307 /checksum/MD5/reset/119 1329s ok 308 /checksum/MD5/reset/120 1329s ok 309 /checksum/MD5/reset/121 1329s ok 310 /checksum/MD5/reset/122 1329s ok 311 /checksum/MD5/reset/123 1329s ok 312 /checksum/MD5/reset/124 1329s ok 313 /checksum/MD5/reset/125 1329s ok 314 /checksum/MD5/reset/126 1329s ok 315 /checksum/MD5/reset/127 1329s ok 316 /checksum/MD5/reset/128 1329s ok 317 /checksum/MD5/reset/129 1329s ok 318 /checksum/MD5/reset/130 1329s ok 319 /checksum/MD5/reset/131 1329s ok 320 /checksum/MD5/reset/132 1329s ok 321 /checksum/MD5/reset/133 1329s ok 322 /checksum/MD5/reset/134 1329s ok 323 /checksum/MD5/reset/135 1329s ok 324 /checksum/MD5/reset/136 1329s ok 325 /checksum/MD5/reset/137 1329s ok 326 /checksum/MD5/reset/138 1329s ok 327 /checksum/MD5/reset/139 1329s ok 328 /checksum/MD5/reset/140 1329s ok 329 /checksum/MD5/reset/141 1329s ok 330 /checksum/MD5/reset/142 1329s ok 331 /checksum/MD5/reset/143 1329s ok 332 /checksum/MD5/reset/144 1329s ok 333 /checksum/MD5/reset/145 1329s ok 334 /checksum/MD5/reset/146 1329s ok 335 /checksum/MD5/reset/147 1329s ok 336 /checksum/MD5/reset/148 1329s ok 337 /checksum/MD5/reset/149 1329s ok 338 /checksum/MD5/reset/150 1329s ok 339 /checksum/MD5/reset/151 1329s ok 340 /checksum/MD5/reset/152 1329s ok 341 /checksum/MD5/reset/153 1329s ok 342 /checksum/MD5/reset/154 1329s ok 343 /checksum/MD5/reset/155 1329s ok 344 /checksum/MD5/reset/156 1329s ok 345 /checksum/MD5/reset/157 1329s ok 346 /checksum/MD5/reset/158 1329s ok 347 /checksum/MD5/reset/159 1329s ok 348 /checksum/MD5/reset/160 1329s ok 349 /checksum/MD5/reset/161 1329s ok 350 /checksum/MD5/reset/162 1329s ok 351 /checksum/MD5/reset/163 1329s ok 352 /checksum/MD5/reset/164 1329s ok 353 /checksum/MD5/reset/165 1329s ok 354 /checksum/MD5/reset/166 1329s ok 355 /checksum/MD5/reset/167 1329s ok 356 /checksum/MD5/reset/168 1329s ok 357 /checksum/MD5/reset/169 1329s ok 358 /checksum/MD5/reset/170 1329s ok 359 /checksum/MD5/reset/171 1329s ok 360 /checksum/MD5/reset/172 1329s ok 361 /checksum/MD5/reset/173 1329s ok 362 /checksum/MD5/reset/174 1329s ok 363 /checksum/MD5/reset/175 1329s ok 364 /checksum/MD5/reset/176 1329s ok 365 /checksum/MD5/reset/177 1329s ok 366 /checksum/MD5/reset/178 1329s ok 367 /checksum/MD5/reset/179 1329s ok 368 /checksum/MD5/reset/180 1329s ok 369 /checksum/MD5/reset/181 1329s ok 370 /checksum/MD5/reset/182 1329s ok 371 /checksum/MD5/reset/183 1329s # End of reset tests 1329s # End of MD5 tests 1329s # Start of SHA1 tests 1329s ok 372 /checksum/SHA1/0 1329s ok 373 /checksum/SHA1/1 1329s ok 374 /checksum/SHA1/2 1329s ok 375 /checksum/SHA1/3 1329s ok 376 /checksum/SHA1/4 1329s ok 377 /checksum/SHA1/5 1329s ok 378 /checksum/SHA1/6 1329s ok 379 /checksum/SHA1/7 1329s ok 380 /checksum/SHA1/8 1329s ok 381 /checksum/SHA1/9 1329s ok 382 /checksum/SHA1/10 1329s ok 383 /checksum/SHA1/11 1329s ok 384 /checksum/SHA1/12 1329s ok 385 /checksum/SHA1/13 1329s ok 386 /checksum/SHA1/14 1329s ok 387 /checksum/SHA1/15 1329s ok 388 /checksum/SHA1/16 1329s ok 389 /checksum/SHA1/17 1329s ok 390 /checksum/SHA1/18 1329s ok 391 /checksum/SHA1/19 1329s ok 392 /checksum/SHA1/20 1329s ok 393 /checksum/SHA1/21 1329s ok 394 /checksum/SHA1/22 1329s ok 395 /checksum/SHA1/23 1329s ok 396 /checksum/SHA1/24 1329s ok 397 /checksum/SHA1/25 1329s ok 398 /checksum/SHA1/26 1329s ok 399 /checksum/SHA1/27 1329s ok 400 /checksum/SHA1/28 1329s ok 401 /checksum/SHA1/29 1329s ok 402 /checksum/SHA1/30 1329s ok 403 /checksum/SHA1/31 1329s ok 404 /checksum/SHA1/32 1329s ok 405 /checksum/SHA1/33 1329s ok 406 /checksum/SHA1/34 1329s ok 407 /checksum/SHA1/35 1329s ok 408 /checksum/SHA1/36 1329s ok 409 /checksum/SHA1/37 1329s ok 410 /checksum/SHA1/38 1329s ok 411 /checksum/SHA1/39 1329s ok 412 /checksum/SHA1/40 1329s ok 413 /checksum/SHA1/41 1329s ok 414 /checksum/SHA1/42 1329s ok 415 /checksum/SHA1/43 1329s ok 416 /checksum/SHA1/44 1329s ok 417 /checksum/SHA1/45 1329s ok 418 /checksum/SHA1/46 1329s ok 419 /checksum/SHA1/47 1329s ok 420 /checksum/SHA1/48 1329s ok 421 /checksum/SHA1/49 1329s ok 422 /checksum/SHA1/50 1329s ok 423 /checksum/SHA1/51 1329s ok 424 /checksum/SHA1/52 1329s ok 425 /checksum/SHA1/53 1329s ok 426 /checksum/SHA1/54 1329s ok 427 /checksum/SHA1/55 1329s ok 428 /checksum/SHA1/56 1329s ok 429 /checksum/SHA1/57 1329s ok 430 /checksum/SHA1/58 1329s ok 431 /checksum/SHA1/59 1329s ok 432 /checksum/SHA1/60 1329s ok 433 /checksum/SHA1/61 1329s ok 434 /checksum/SHA1/62 1329s ok 435 /checksum/SHA1/63 1329s ok 436 /checksum/SHA1/64 1329s ok 437 /checksum/SHA1/65 1329s ok 438 /checksum/SHA1/66 1329s ok 439 /checksum/SHA1/67 1329s ok 440 /checksum/SHA1/68 1329s ok 441 /checksum/SHA1/69 1329s ok 442 /checksum/SHA1/70 1329s ok 443 /checksum/SHA1/71 1329s ok 444 /checksum/SHA1/72 1329s ok 445 /checksum/SHA1/73 1329s ok 446 /checksum/SHA1/74 1329s ok 447 /checksum/SHA1/75 1329s ok 448 /checksum/SHA1/76 1329s ok 449 /checksum/SHA1/77 1329s ok 450 /checksum/SHA1/78 1329s ok 451 /checksum/SHA1/79 1329s ok 452 /checksum/SHA1/80 1329s ok 453 /checksum/SHA1/81 1329s ok 454 /checksum/SHA1/82 1329s ok 455 /checksum/SHA1/83 1329s ok 456 /checksum/SHA1/84 1329s ok 457 /checksum/SHA1/85 1329s ok 458 /checksum/SHA1/86 1329s ok 459 /checksum/SHA1/87 1329s ok 460 /checksum/SHA1/88 1329s ok 461 /checksum/SHA1/89 1329s ok 462 /checksum/SHA1/90 1329s ok 463 /checksum/SHA1/91 1329s ok 464 /checksum/SHA1/92 1329s ok 465 /checksum/SHA1/93 1329s ok 466 /checksum/SHA1/94 1329s ok 467 /checksum/SHA1/95 1329s ok 468 /checksum/SHA1/96 1329s ok 469 /checksum/SHA1/97 1329s ok 470 /checksum/SHA1/98 1329s ok 471 /checksum/SHA1/99 1329s ok 472 /checksum/SHA1/100 1329s ok 473 /checksum/SHA1/101 1329s ok 474 /checksum/SHA1/102 1329s ok 475 /checksum/SHA1/103 1329s ok 476 /checksum/SHA1/104 1329s ok 477 /checksum/SHA1/105 1329s ok 478 /checksum/SHA1/106 1329s ok 479 /checksum/SHA1/107 1329s ok 480 /checksum/SHA1/108 1329s ok 481 /checksum/SHA1/109 1329s ok 482 /checksum/SHA1/110 1329s ok 483 /checksum/SHA1/111 1329s ok 484 /checksum/SHA1/112 1329s ok 485 /checksum/SHA1/113 1329s ok 486 /checksum/SHA1/114 1329s ok 487 /checksum/SHA1/115 1329s ok 488 /checksum/SHA1/116 1329s ok 489 /checksum/SHA1/117 1329s ok 490 /checksum/SHA1/118 1329s ok 491 /checksum/SHA1/119 1329s ok 492 /checksum/SHA1/120 1329s ok 493 /checksum/SHA1/121 1329s ok 494 /checksum/SHA1/122 1329s ok 495 /checksum/SHA1/123 1329s ok 496 /checksum/SHA1/124 1329s ok 497 /checksum/SHA1/125 1329s ok 498 /checksum/SHA1/126 1329s ok 499 /checksum/SHA1/127 1329s ok 500 /checksum/SHA1/128 1329s ok 501 /checksum/SHA1/129 1329s ok 502 /checksum/SHA1/130 1329s ok 503 /checksum/SHA1/131 1329s ok 504 /checksum/SHA1/132 1329s ok 505 /checksum/SHA1/133 1329s ok 506 /checksum/SHA1/134 1329s ok 507 /checksum/SHA1/135 1329s ok 508 /checksum/SHA1/136 1329s ok 509 /checksum/SHA1/137 1329s ok 510 /checksum/SHA1/138 1329s ok 511 /checksum/SHA1/139 1329s ok 512 /checksum/SHA1/140 1329s ok 513 /checksum/SHA1/141 1329s ok 514 /checksum/SHA1/142 1329s ok 515 /checksum/SHA1/143 1329s ok 516 /checksum/SHA1/144 1329s ok 517 /checksum/SHA1/145 1329s ok 518 /checksum/SHA1/146 1329s ok 519 /checksum/SHA1/147 1329s ok 520 /checksum/SHA1/148 1329s ok 521 /checksum/SHA1/149 1329s ok 522 /checksum/SHA1/150 1329s ok 523 /checksum/SHA1/151 1329s ok 524 /checksum/SHA1/152 1329s ok 525 /checksum/SHA1/153 1329s ok 526 /checksum/SHA1/154 1329s ok 527 /checksum/SHA1/155 1329s ok 528 /checksum/SHA1/156 1329s ok 529 /checksum/SHA1/157 1329s ok 530 /checksum/SHA1/158 1329s ok 531 /checksum/SHA1/159 1329s ok 532 /checksum/SHA1/160 1329s ok 533 /checksum/SHA1/161 1329s ok 534 /checksum/SHA1/162 1329s ok 535 /checksum/SHA1/163 1329s ok 536 /checksum/SHA1/164 1329s ok 537 /checksum/SHA1/165 1329s ok 538 /checksum/SHA1/166 1329s ok 539 /checksum/SHA1/167 1329s ok 540 /checksum/SHA1/168 1329s ok 541 /checksum/SHA1/169 1329s ok 542 /checksum/SHA1/170 1329s ok 543 /checksum/SHA1/171 1329s ok 544 /checksum/SHA1/172 1329s ok 545 /checksum/SHA1/173 1329s ok 546 /checksum/SHA1/174 1329s ok 547 /checksum/SHA1/175 1329s ok 548 /checksum/SHA1/176 1329s ok 549 /checksum/SHA1/177 1329s ok 550 /checksum/SHA1/178 1329s ok 551 /checksum/SHA1/179 1329s ok 552 /checksum/SHA1/180 1329s ok 553 /checksum/SHA1/181 1329s ok 554 /checksum/SHA1/182 1329s ok 555 /checksum/SHA1/183 1329s ok 556 /checksum/SHA1/string 1329s ok 557 /checksum/SHA1/bytes 1329s # Start of reset tests 1329s ok 558 /checksum/SHA1/reset/0 1329s ok 559 /checksum/SHA1/reset/1 1329s ok 560 /checksum/SHA1/reset/2 1329s ok 561 /checksum/SHA1/reset/3 1329s ok 562 /checksum/SHA1/reset/4 1329s ok 563 /checksum/SHA1/reset/5 1329s ok 564 /checksum/SHA1/reset/6 1329s ok 565 /checksum/SHA1/reset/7 1329s ok 566 /checksum/SHA1/reset/8 1329s ok 567 /checksum/SHA1/reset/9 1329s ok 568 /checksum/SHA1/reset/10 1329s ok 569 /checksum/SHA1/reset/11 1329s ok 570 /checksum/SHA1/reset/12 1329s ok 571 /checksum/SHA1/reset/13 1329s ok 572 /checksum/SHA1/reset/14 1329s ok 573 /checksum/SHA1/reset/15 1329s ok 574 /checksum/SHA1/reset/16 1329s ok 575 /checksum/SHA1/reset/17 1329s ok 576 /checksum/SHA1/reset/18 1329s ok 577 /checksum/SHA1/reset/19 1329s ok 578 /checksum/SHA1/reset/20 1329s ok 579 /checksum/SHA1/reset/21 1329s ok 580 /checksum/SHA1/reset/22 1329s ok 581 /checksum/SHA1/reset/23 1329s ok 582 /checksum/SHA1/reset/24 1329s ok 583 /checksum/SHA1/reset/25 1329s ok 584 /checksum/SHA1/reset/26 1329s ok 585 /checksum/SHA1/reset/27 1329s ok 586 /checksum/SHA1/reset/28 1329s ok 587 /checksum/SHA1/reset/29 1329s ok 588 /checksum/SHA1/reset/30 1329s ok 589 /checksum/SHA1/reset/31 1329s ok 590 /checksum/SHA1/reset/32 1329s ok 591 /checksum/SHA1/reset/33 1329s ok 592 /checksum/SHA1/reset/34 1329s ok 593 /checksum/SHA1/reset/35 1329s ok 594 /checksum/SHA1/reset/36 1329s ok 595 /checksum/SHA1/reset/37 1329s ok 596 /checksum/SHA1/reset/38 1329s ok 597 /checksum/SHA1/reset/39 1329s ok 598 /checksum/SHA1/reset/40 1329s ok 599 /checksum/SHA1/reset/41 1329s ok 600 /checksum/SHA1/reset/42 1329s ok 601 /checksum/SHA1/reset/43 1329s ok 602 /checksum/SHA1/reset/44 1329s ok 603 /checksum/SHA1/reset/45 1329s ok 604 /checksum/SHA1/reset/46 1329s ok 605 /checksum/SHA1/reset/47 1329s ok 606 /checksum/SHA1/reset/48 1329s ok 607 /checksum/SHA1/reset/49 1329s ok 608 /checksum/SHA1/reset/50 1329s ok 609 /checksum/SHA1/reset/51 1329s ok 610 /checksum/SHA1/reset/52 1329s ok 611 /checksum/SHA1/reset/53 1329s ok 612 /checksum/SHA1/reset/54 1329s ok 613 /checksum/SHA1/reset/55 1329s ok 614 /checksum/SHA1/reset/56 1329s ok 615 /checksum/SHA1/reset/57 1329s ok 616 /checksum/SHA1/reset/58 1329s ok 617 /checksum/SHA1/reset/59 1329s ok 618 /checksum/SHA1/reset/60 1329s ok 619 /checksum/SHA1/reset/61 1329s ok 620 /checksum/SHA1/reset/62 1329s ok 621 /checksum/SHA1/reset/63 1329s ok 622 /checksum/SHA1/reset/64 1329s ok 623 /checksum/SHA1/reset/65 1329s ok 624 /checksum/SHA1/reset/66 1329s ok 625 /checksum/SHA1/reset/67 1329s ok 626 /checksum/SHA1/reset/68 1329s ok 627 /checksum/SHA1/reset/69 1329s ok 628 /checksum/SHA1/reset/70 1329s ok 629 /checksum/SHA1/reset/71 1329s ok 630 /checksum/SHA1/reset/72 1329s ok 631 /checksum/SHA1/reset/73 1329s ok 632 /checksum/SHA1/reset/74 1329s ok 633 /checksum/SHA1/reset/75 1329s ok 634 /checksum/SHA1/reset/76 1329s ok 635 /checksum/SHA1/reset/77 1329s ok 636 /checksum/SHA1/reset/78 1329s ok 637 /checksum/SHA1/reset/79 1329s ok 638 /checksum/SHA1/reset/80 1329s ok 639 /checksum/SHA1/reset/81 1329s ok 640 /checksum/SHA1/reset/82 1329s ok 641 /checksum/SHA1/reset/83 1329s ok 642 /checksum/SHA1/reset/84 1329s ok 643 /checksum/SHA1/reset/85 1329s ok 644 /checksum/SHA1/reset/86 1329s ok 645 /checksum/SHA1/reset/87 1329s ok 646 /checksum/SHA1/reset/88 1329s ok 647 /checksum/SHA1/reset/89 1329s ok 648 /checksum/SHA1/reset/90 1329s ok 649 /checksum/SHA1/reset/91 1329s ok 650 /checksum/SHA1/reset/92 1329s ok 651 /checksum/SHA1/reset/93 1329s ok 652 /checksum/SHA1/reset/94 1329s ok 653 /checksum/SHA1/reset/95 1329s ok 654 /checksum/SHA1/reset/96 1329s ok 655 /checksum/SHA1/reset/97 1329s ok 656 /checksum/SHA1/reset/98 1329s ok 657 /checksum/SHA1/reset/99 1329s ok 658 /checksum/SHA1/reset/100 1329s ok 659 /checksum/SHA1/reset/101 1329s ok 660 /checksum/SHA1/reset/102 1329s ok 661 /checksum/SHA1/reset/103 1329s ok 662 /checksum/SHA1/reset/104 1329s ok 663 /checksum/SHA1/reset/105 1329s ok 664 /checksum/SHA1/reset/106 1329s ok 665 /checksum/SHA1/reset/107 1329s ok 666 /checksum/SHA1/reset/108 1329s ok 667 /checksum/SHA1/reset/109 1329s ok 668 /checksum/SHA1/reset/110 1329s ok 669 /checksum/SHA1/reset/111 1329s ok 670 /checksum/SHA1/reset/112 1329s ok 671 /checksum/SHA1/reset/113 1329s ok 672 /checksum/SHA1/reset/114 1329s ok 673 /checksum/SHA1/reset/115 1329s ok 674 /checksum/SHA1/reset/116 1329s ok 675 /checksum/SHA1/reset/117 1329s ok 676 /checksum/SHA1/reset/118 1329s ok 677 /checksum/SHA1/reset/119 1329s ok 678 /checksum/SHA1/reset/120 1329s ok 679 /checksum/SHA1/reset/121 1329s ok 680 /checksum/SHA1/reset/122 1329s ok 681 /checksum/SHA1/reset/123 1329s ok 682 /checksum/SHA1/reset/124 1329s ok 683 /checksum/SHA1/reset/125 1329s ok 684 /checksum/SHA1/reset/126 1329s ok 685 /checksum/SHA1/reset/127 1329s ok 686 /checksum/SHA1/reset/128 1329s ok 687 /checksum/SHA1/reset/129 1329s ok 688 /checksum/SHA1/reset/130 1329s ok 689 /checksum/SHA1/reset/131 1329s ok 690 /checksum/SHA1/reset/132 1329s ok 691 /checksum/SHA1/reset/133 1329s ok 692 /checksum/SHA1/reset/134 1329s ok 693 /checksum/SHA1/reset/135 1329s ok 694 /checksum/SHA1/reset/136 1329s ok 695 /checksum/SHA1/reset/137 1329s ok 696 /checksum/SHA1/reset/138 1329s ok 697 /checksum/SHA1/reset/139 1329s ok 698 /checksum/SHA1/reset/140 1329s ok 699 /checksum/SHA1/reset/141 1329s ok 700 /checksum/SHA1/reset/142 1329s ok 701 /checksum/SHA1/reset/143 1329s ok 702 /checksum/SHA1/reset/144 1329s ok 703 /checksum/SHA1/reset/145 1329s ok 704 /checksum/SHA1/reset/146 1329s ok 705 /checksum/SHA1/reset/147 1329s ok 706 /checksum/SHA1/reset/148 1329s ok 707 /checksum/SHA1/reset/149 1329s ok 708 /checksum/SHA1/reset/150 1329s ok 709 /checksum/SHA1/reset/151 1329s ok 710 /checksum/SHA1/reset/152 1329s ok 711 /checksum/SHA1/reset/153 1329s ok 712 /checksum/SHA1/reset/154 1329s ok 713 /checksum/SHA1/reset/155 1329s ok 714 /checksum/SHA1/reset/156 1329s ok 715 /checksum/SHA1/reset/157 1329s ok 716 /checksum/SHA1/reset/158 1329s ok 717 /checksum/SHA1/reset/159 1329s ok 718 /checksum/SHA1/reset/160 1329s ok 719 /checksum/SHA1/reset/161 1329s ok 720 /checksum/SHA1/reset/162 1329s ok 721 /checksum/SHA1/reset/163 1329s ok 722 /checksum/SHA1/reset/164 1329s ok 723 /checksum/SHA1/reset/165 1329s ok 724 /checksum/SHA1/reset/166 1329s ok 725 /checksum/SHA1/reset/167 1329s ok 726 /checksum/SHA1/reset/168 1329s ok 727 /checksum/SHA1/reset/169 1329s ok 728 /checksum/SHA1/reset/170 1329s ok 729 /checksum/SHA1/reset/171 1329s ok 730 /checksum/SHA1/reset/172 1329s ok 731 /checksum/SHA1/reset/173 1329s ok 732 /checksum/SHA1/reset/174 1329s ok 733 /checksum/SHA1/reset/175 1329s ok 734 /checksum/SHA1/reset/176 1329s ok 735 /checksum/SHA1/reset/177 1329s ok 736 /checksum/SHA1/reset/178 1329s ok 737 /checksum/SHA1/reset/179 1329s ok 738 /checksum/SHA1/reset/180 1329s ok 739 /checksum/SHA1/reset/181 1329s ok 740 /checksum/SHA1/reset/182 1329s ok 741 /checksum/SHA1/reset/183 1329s # End of reset tests 1329s # End of SHA1 tests 1329s # Start of SHA256 tests 1329s ok 742 /checksum/SHA256/0 1329s ok 743 /checksum/SHA256/1 1329s ok 744 /checksum/SHA256/2 1329s ok 745 /checksum/SHA256/3 1329s ok 746 /checksum/SHA256/4 1329s ok 747 /checksum/SHA256/5 1329s ok 748 /checksum/SHA256/6 1329s ok 749 /checksum/SHA256/7 1329s ok 750 /checksum/SHA256/8 1329s ok 751 /checksum/SHA256/9 1329s ok 752 /checksum/SHA256/10 1329s ok 753 /checksum/SHA256/11 1329s ok 754 /checksum/SHA256/12 1329s ok 755 /checksum/SHA256/13 1329s ok 756 /checksum/SHA256/14 1329s ok 757 /checksum/SHA256/15 1329s ok 758 /checksum/SHA256/16 1329s ok 759 /checksum/SHA256/17 1329s ok 760 /checksum/SHA256/18 1329s ok 761 /checksum/SHA256/19 1329s ok 762 /checksum/SHA256/20 1329s ok 763 /checksum/SHA256/21 1329s ok 764 /checksum/SHA256/22 1329s ok 765 /checksum/SHA256/23 1329s ok 766 /checksum/SHA256/24 1329s ok 767 /checksum/SHA256/25 1329s ok 768 /checksum/SHA256/26 1329s ok 769 /checksum/SHA256/27 1329s ok 770 /checksum/SHA256/28 1329s ok 771 /checksum/SHA256/29 1329s ok 772 /checksum/SHA256/30 1329s ok 773 /checksum/SHA256/31 1329s ok 774 /checksum/SHA256/32 1329s ok 775 /checksum/SHA256/33 1329s ok 776 /checksum/SHA256/34 1329s ok 777 /checksum/SHA256/35 1329s ok 778 /checksum/SHA256/36 1329s ok 779 /checksum/SHA256/37 1329s ok 780 /checksum/SHA256/38 1329s ok 781 /checksum/SHA256/39 1329s ok 782 /checksum/SHA256/40 1329s ok 783 /checksum/SHA256/41 1329s ok 784 /checksum/SHA256/42 1329s ok 785 /checksum/SHA256/43 1329s ok 786 /checksum/SHA256/44 1329s ok 787 /checksum/SHA256/45 1329s ok 788 /checksum/SHA256/46 1329s ok 789 /checksum/SHA256/47 1329s ok 790 /checksum/SHA256/48 1329s ok 791 /checksum/SHA256/49 1329s ok 792 /checksum/SHA256/50 1329s ok 793 /checksum/SHA256/51 1329s ok 794 /checksum/SHA256/52 1329s ok 795 /checksum/SHA256/53 1329s ok 796 /checksum/SHA256/54 1329s ok 797 /checksum/SHA256/55 1329s ok 798 /checksum/SHA256/56 1329s ok 799 /checksum/SHA256/57 1329s ok 800 /checksum/SHA256/58 1329s ok 801 /checksum/SHA256/59 1329s ok 802 /checksum/SHA256/60 1329s ok 803 /checksum/SHA256/61 1329s ok 804 /checksum/SHA256/62 1329s ok 805 /checksum/SHA256/63 1329s ok 806 /checksum/SHA256/64 1329s ok 807 /checksum/SHA256/65 1329s ok 808 /checksum/SHA256/66 1329s ok 809 /checksum/SHA256/67 1329s ok 810 /checksum/SHA256/68 1329s ok 811 /checksum/SHA256/69 1329s ok 812 /checksum/SHA256/70 1329s ok 813 /checksum/SHA256/71 1329s ok 814 /checksum/SHA256/72 1329s ok 815 /checksum/SHA256/73 1329s ok 816 /checksum/SHA256/74 1329s ok 817 /checksum/SHA256/75 1329s ok 818 /checksum/SHA256/76 1329s ok 819 /checksum/SHA256/77 1329s ok 820 /checksum/SHA256/78 1329s ok 821 /checksum/SHA256/79 1329s ok 822 /checksum/SHA256/80 1329s ok 823 /checksum/SHA256/81 1329s ok 824 /checksum/SHA256/82 1329s ok 825 /checksum/SHA256/83 1329s ok 826 /checksum/SHA256/84 1329s ok 827 /checksum/SHA256/85 1329s ok 828 /checksum/SHA256/86 1329s ok 829 /checksum/SHA256/87 1329s ok 830 /checksum/SHA256/88 1329s ok 831 /checksum/SHA256/89 1329s ok 832 /checksum/SHA256/90 1329s ok 833 /checksum/SHA256/91 1329s ok 834 /checksum/SHA256/92 1329s ok 835 /checksum/SHA256/93 1329s ok 836 /checksum/SHA256/94 1329s ok 837 /checksum/SHA256/95 1329s ok 838 /checksum/SHA256/96 1329s ok 839 /checksum/SHA256/97 1329s ok 840 /checksum/SHA256/98 1329s ok 841 /checksum/SHA256/99 1329s ok 842 /checksum/SHA256/100 1329s ok 843 /checksum/SHA256/101 1329s ok 844 /checksum/SHA256/102 1329s ok 845 /checksum/SHA256/103 1329s ok 846 /checksum/SHA256/104 1329s ok 847 /checksum/SHA256/105 1329s ok 848 /checksum/SHA256/106 1329s ok 849 /checksum/SHA256/107 1329s ok 850 /checksum/SHA256/108 1329s ok 851 /checksum/SHA256/109 1329s ok 852 /checksum/SHA256/110 1329s ok 853 /checksum/SHA256/111 1329s ok 854 /checksum/SHA256/112 1329s ok 855 /checksum/SHA256/113 1329s ok 856 /checksum/SHA256/114 1329s ok 857 /checksum/SHA256/115 1329s ok 858 /checksum/SHA256/116 1329s ok 859 /checksum/SHA256/117 1329s ok 860 /checksum/SHA256/118 1329s ok 861 /checksum/SHA256/119 1329s ok 862 /checksum/SHA256/120 1329s ok 863 /checksum/SHA256/121 1329s ok 864 /checksum/SHA256/122 1329s ok 865 /checksum/SHA256/123 1329s ok 866 /checksum/SHA256/124 1329s ok 867 /checksum/SHA256/125 1329s ok 868 /checksum/SHA256/126 1329s ok 869 /checksum/SHA256/127 1329s ok 870 /checksum/SHA256/128 1329s ok 871 /checksum/SHA256/129 1329s ok 872 /checksum/SHA256/130 1329s ok 873 /checksum/SHA256/131 1329s ok 874 /checksum/SHA256/132 1329s ok 875 /checksum/SHA256/133 1329s ok 876 /checksum/SHA256/134 1329s ok 877 /checksum/SHA256/135 1329s ok 878 /checksum/SHA256/136 1329s ok 879 /checksum/SHA256/137 1329s ok 880 /checksum/SHA256/138 1329s ok 881 /checksum/SHA256/139 1329s ok 882 /checksum/SHA256/140 1329s ok 883 /checksum/SHA256/141 1329s ok 884 /checksum/SHA256/142 1329s ok 885 /checksum/SHA256/143 1329s ok 886 /checksum/SHA256/144 1329s ok 887 /checksum/SHA256/145 1329s ok 888 /checksum/SHA256/146 1329s ok 889 /checksum/SHA256/147 1329s ok 890 /checksum/SHA256/148 1329s ok 891 /checksum/SHA256/149 1329s ok 892 /checksum/SHA256/150 1329s ok 893 /checksum/SHA256/151 1329s ok 894 /checksum/SHA256/152 1329s ok 895 /checksum/SHA256/153 1329s ok 896 /checksum/SHA256/154 1329s ok 897 /checksum/SHA256/155 1329s ok 898 /checksum/SHA256/156 1329s ok 899 /checksum/SHA256/157 1329s ok 900 /checksum/SHA256/158 1329s ok 901 /checksum/SHA256/159 1329s ok 902 /checksum/SHA256/160 1329s ok 903 /checksum/SHA256/161 1329s ok 904 /checksum/SHA256/162 1329s ok 905 /checksum/SHA256/163 1329s ok 906 /checksum/SHA256/164 1329s ok 907 /checksum/SHA256/165 1329s ok 908 /checksum/SHA256/166 1329s ok 909 /checksum/SHA256/167 1329s ok 910 /checksum/SHA256/168 1329s ok 911 /checksum/SHA256/169 1329s ok 912 /checksum/SHA256/170 1329s ok 913 /checksum/SHA256/171 1329s ok 914 /checksum/SHA256/172 1329s ok 915 /checksum/SHA256/173 1329s ok 916 /checksum/SHA256/174 1329s ok 917 /checksum/SHA256/175 1329s ok 918 /checksum/SHA256/176 1329s ok 919 /checksum/SHA256/177 1329s ok 920 /checksum/SHA256/178 1329s ok 921 /checksum/SHA256/179 1329s ok 922 /checksum/SHA256/180 1329s ok 923 /checksum/SHA256/181 1329s ok 924 /checksum/SHA256/182 1329s ok 925 /checksum/SHA256/183 1329s ok 926 /checksum/SHA256/string 1329s ok 927 /checksum/SHA256/bytes 1329s # Start of reset tests 1329s ok 928 /checksum/SHA256/reset/0 1329s ok 929 /checksum/SHA256/reset/1 1329s ok 930 /checksum/SHA256/reset/2 1329s ok 931 /checksum/SHA256/reset/3 1329s ok 932 /checksum/SHA256/reset/4 1329s ok 933 /checksum/SHA256/reset/5 1329s ok 934 /checksum/SHA256/reset/6 1329s ok 935 /checksum/SHA256/reset/7 1329s ok 936 /checksum/SHA256/reset/8 1329s ok 937 /checksum/SHA256/reset/9 1329s ok 938 /checksum/SHA256/reset/10 1329s ok 939 /checksum/SHA256/reset/11 1329s ok 940 /checksum/SHA256/reset/12 1329s ok 941 /checksum/SHA256/reset/13 1329s ok 942 /checksum/SHA256/reset/14 1329s ok 943 /checksum/SHA256/reset/15 1329s ok 944 /checksum/SHA256/reset/16 1329s ok 945 /checksum/SHA256/reset/17 1329s ok 946 /checksum/SHA256/reset/18 1329s ok 947 /checksum/SHA256/reset/19 1329s ok 948 /checksum/SHA256/reset/20 1329s ok 949 /checksum/SHA256/reset/21 1329s ok 950 /checksum/SHA256/reset/22 1329s ok 951 /checksum/SHA256/reset/23 1329s ok 952 /checksum/SHA256/reset/24 1329s ok 953 /checksum/SHA256/reset/25 1329s ok 954 /checksum/SHA256/reset/26 1329s ok 955 /checksum/SHA256/reset/27 1329s ok 956 /checksum/SHA256/reset/28 1329s ok 957 /checksum/SHA256/reset/29 1329s ok 958 /checksum/SHA256/reset/30 1329s ok 959 /checksum/SHA256/reset/31 1329s ok 960 /checksum/SHA256/reset/32 1329s ok 961 /checksum/SHA256/reset/33 1329s ok 962 /checksum/SHA256/reset/34 1329s ok 963 /checksum/SHA256/reset/35 1329s ok 964 /checksum/SHA256/reset/36 1329s ok 965 /checksum/SHA256/reset/37 1329s ok 966 /checksum/SHA256/reset/38 1329s ok 967 /checksum/SHA256/reset/39 1329s ok 968 /checksum/SHA256/reset/40 1329s ok 969 /checksum/SHA256/reset/41 1329s ok 970 /checksum/SHA256/reset/42 1329s ok 971 /checksum/SHA256/reset/43 1329s ok 972 /checksum/SHA256/reset/44 1329s ok 973 /checksum/SHA256/reset/45 1329s ok 974 /checksum/SHA256/reset/46 1329s ok 975 /checksum/SHA256/reset/47 1329s ok 976 /checksum/SHA256/reset/48 1329s ok 977 /checksum/SHA256/reset/49 1329s ok 978 /checksum/SHA256/reset/50 1329s ok 979 /checksum/SHA256/reset/51 1329s ok 980 /checksum/SHA256/reset/52 1329s ok 981 /checksum/SHA256/reset/53 1329s ok 982 /checksum/SHA256/reset/54 1329s ok 983 /checksum/SHA256/reset/55 1329s ok 984 /checksum/SHA256/reset/56 1329s ok 985 /checksum/SHA256/reset/57 1329s ok 986 /checksum/SHA256/reset/58 1329s ok 987 /checksum/SHA256/reset/59 1329s ok 988 /checksum/SHA256/reset/60 1329s ok 989 /checksum/SHA256/reset/61 1329s ok 990 /checksum/SHA256/reset/62 1329s ok 991 /checksum/SHA256/reset/63 1329s ok 992 /checksum/SHA256/reset/64 1329s ok 993 /checksum/SHA256/reset/65 1329s ok 994 /checksum/SHA256/reset/66 1329s ok 995 /checksum/SHA256/reset/67 1329s ok 996 /checksum/SHA256/reset/68 1329s ok 997 /checksum/SHA256/reset/69 1329s ok 998 /checksum/SHA256/reset/70 1329s ok 999 /checksum/SHA256/reset/71 1329s ok 1000 /checksum/SHA256/reset/72 1329s ok 1001 /checksum/SHA256/reset/73 1329s ok 1002 /checksum/SHA256/reset/74 1329s ok 1003 /checksum/SHA256/reset/75 1329s ok 1004 /checksum/SHA256/reset/76 1329s ok 1005 /checksum/SHA256/reset/77 1329s ok 1006 /checksum/SHA256/reset/78 1329s ok 1007 /checksum/SHA256/reset/79 1329s ok 1008 /checksum/SHA256/reset/80 1329s ok 1009 /checksum/SHA256/reset/81 1329s ok 1010 /checksum/SHA256/reset/82 1329s ok 1011 /checksum/SHA256/reset/83 1329s ok 1012 /checksum/SHA256/reset/84 1329s ok 1013 /checksum/SHA256/reset/85 1329s ok 1014 /checksum/SHA256/reset/86 1329s ok 1015 /checksum/SHA256/reset/87 1329s ok 1016 /checksum/SHA256/reset/88 1329s ok 1017 /checksum/SHA256/reset/89 1329s ok 1018 /checksum/SHA256/reset/90 1329s ok 1019 /checksum/SHA256/reset/91 1329s ok 1020 /checksum/SHA256/reset/92 1329s ok 1021 /checksum/SHA256/reset/93 1329s ok 1022 /checksum/SHA256/reset/94 1329s ok 1023 /checksum/SHA256/reset/95 1329s ok 1024 /checksum/SHA256/reset/96 1329s ok 1025 /checksum/SHA256/reset/97 1329s ok 1026 /checksum/SHA256/reset/98 1329s ok 1027 /checksum/SHA256/reset/99 1329s ok 1028 /checksum/SHA256/reset/100 1329s ok 1029 /checksum/SHA256/reset/101 1329s ok 1030 /checksum/SHA256/reset/102 1329s ok 1031 /checksum/SHA256/reset/103 1329s ok 1032 /checksum/SHA256/reset/104 1329s ok 1033 /checksum/SHA256/reset/105 1329s ok 1034 /checksum/SHA256/reset/106 1329s ok 1035 /checksum/SHA256/reset/107 1329s ok 1036 /checksum/SHA256/reset/108 1329s ok 1037 /checksum/SHA256/reset/109 1329s ok 1038 /checksum/SHA256/reset/110 1329s ok 1039 /checksum/SHA256/reset/111 1329s ok 1040 /checksum/SHA256/reset/112 1329s ok 1041 /checksum/SHA256/reset/113 1329s ok 1042 /checksum/SHA256/reset/114 1329s ok 1043 /checksum/SHA256/reset/115 1329s ok 1044 /checksum/SHA256/reset/116 1329s ok 1045 /checksum/SHA256/reset/117 1329s ok 1046 /checksum/SHA256/reset/118 1329s ok 1047 /checksum/SHA256/reset/119 1329s ok 1048 /checksum/SHA256/reset/120 1329s ok 1049 /checksum/SHA256/reset/121 1329s ok 1050 /checksum/SHA256/reset/122 1329s ok 1051 /checksum/SHA256/reset/123 1329s ok 1052 /checksum/SHA256/reset/124 1329s ok 1053 /checksum/SHA256/reset/125 1329s ok 1054 /checksum/SHA256/reset/126 1329s ok 1055 /checksum/SHA256/reset/127 1329s ok 1056 /checksum/SHA256/reset/128 1329s ok 1057 /checksum/SHA256/reset/129 1329s ok 1058 /checksum/SHA256/reset/130 1329s ok 1059 /checksum/SHA256/reset/131 1329s ok 1060 /checksum/SHA256/reset/132 1329s ok 1061 /checksum/SHA256/reset/133 1329s ok 1062 /checksum/SHA256/reset/134 1329s ok 1063 /checksum/SHA256/reset/135 1329s ok 1064 /checksum/SHA256/reset/136 1329s ok 1065 /checksum/SHA256/reset/137 1329s ok 1066 /checksum/SHA256/reset/138 1329s ok 1067 /checksum/SHA256/reset/139 1329s ok 1068 /checksum/SHA256/reset/140 1329s ok 1069 /checksum/SHA256/reset/141 1329s ok 1070 /checksum/SHA256/reset/142 1329s ok 1071 /checksum/SHA256/reset/143 1329s ok 1072 /checksum/SHA256/reset/144 1329s ok 1073 /checksum/SHA256/reset/145 1329s ok 1074 /checksum/SHA256/reset/146 1329s ok 1075 /checksum/SHA256/reset/147 1329s ok 1076 /checksum/SHA256/reset/148 1329s ok 1077 /checksum/SHA256/reset/149 1329s ok 1078 /checksum/SHA256/reset/150 1329s ok 1079 /checksum/SHA256/reset/151 1329s ok 1080 /checksum/SHA256/reset/152 1329s ok 1081 /checksum/SHA256/reset/153 1329s ok 1082 /checksum/SHA256/reset/154 1329s ok 1083 /checksum/SHA256/reset/155 1329s ok 1084 /checksum/SHA256/reset/156 1329s ok 1085 /checksum/SHA256/reset/157 1329s ok 1086 /checksum/SHA256/reset/158 1329s ok 1087 /checksum/SHA256/reset/159 1329s ok 1088 /checksum/SHA256/reset/160 1329s ok 1089 /checksum/SHA256/reset/161 1329s ok 1090 /checksum/SHA256/reset/162 1329s ok 1091 /checksum/SHA256/reset/163 1329s ok 1092 /checksum/SHA256/reset/164 1329s ok 1093 /checksum/SHA256/reset/165 1329s ok 1094 /checksum/SHA256/reset/166 1329s ok 1095 /checksum/SHA256/reset/167 1329s ok 1096 /checksum/SHA256/reset/168 1329s ok 1097 /checksum/SHA256/reset/169 1329s ok 1098 /checksum/SHA256/reset/170 1329s ok 1099 /checksum/SHA256/reset/171 1329s ok 1100 /checksum/SHA256/reset/172 1329s ok 1101 /checksum/SHA256/reset/173 1329s ok 1102 /checksum/SHA256/reset/174 1329s ok 1103 /checksum/SHA256/reset/175 1329s ok 1104 /checksum/SHA256/reset/176 1329s ok 1105 /checksum/SHA256/reset/177 1329s ok 1106 /checksum/SHA256/reset/178 1329s ok 1107 /checksum/SHA256/reset/179 1329s ok 1108 /checksum/SHA256/reset/180 1329s ok 1109 /checksum/SHA256/reset/181 1329s ok 1110 /checksum/SHA256/reset/182 1329s ok 1111 /checksum/SHA256/reset/183 1329s # End of reset tests 1329s # End of SHA256 tests 1329s # Start of SHA384 tests 1329s ok 1112 /checksum/SHA384/0 1329s ok 1113 /checksum/SHA384/1 1329s ok 1114 /checksum/SHA384/2 1329s ok 1115 /checksum/SHA384/3 1329s ok 1116 /checksum/SHA384/4 1329s ok 1117 /checksum/SHA384/5 1329s ok 1118 /checksum/SHA384/6 1329s ok 1119 /checksum/SHA384/7 1329s ok 1120 /checksum/SHA384/8 1329s ok 1121 /checksum/SHA384/9 1329s ok 1122 /checksum/SHA384/10 1329s ok 1123 /checksum/SHA384/11 1329s ok 1124 /checksum/SHA384/12 1329s ok 1125 /checksum/SHA384/13 1329s ok 1126 /checksum/SHA384/14 1329s ok 1127 /checksum/SHA384/15 1329s ok 1128 /checksum/SHA384/16 1329s ok 1129 /checksum/SHA384/17 1329s ok 1130 /checksum/SHA384/18 1329s ok 1131 /checksum/SHA384/19 1329s ok 1132 /checksum/SHA384/20 1329s ok 1133 /checksum/SHA384/21 1329s ok 1134 /checksum/SHA384/22 1329s ok 1135 /checksum/SHA384/23 1329s ok 1136 /checksum/SHA384/24 1329s ok 1137 /checksum/SHA384/25 1329s ok 1138 /checksum/SHA384/26 1329s ok 1139 /checksum/SHA384/27 1329s ok 1140 /checksum/SHA384/28 1329s ok 1141 /checksum/SHA384/29 1329s ok 1142 /checksum/SHA384/30 1329s ok 1143 /checksum/SHA384/31 1329s ok 1144 /checksum/SHA384/32 1329s ok 1145 /checksum/SHA384/33 1329s ok 1146 /checksum/SHA384/34 1329s ok 1147 /checksum/SHA384/35 1329s ok 1148 /checksum/SHA384/36 1329s ok 1149 /checksum/SHA384/37 1329s ok 1150 /checksum/SHA384/38 1329s ok 1151 /checksum/SHA384/39 1329s ok 1152 /checksum/SHA384/40 1329s ok 1153 /checksum/SHA384/41 1329s ok 1154 /checksum/SHA384/42 1329s ok 1155 /checksum/SHA384/43 1329s ok 1156 /checksum/SHA384/44 1329s ok 1157 /checksum/SHA384/45 1329s ok 1158 /checksum/SHA384/46 1329s ok 1159 /checksum/SHA384/47 1329s ok 1160 /checksum/SHA384/48 1329s ok 1161 /checksum/SHA384/49 1329s ok 1162 /checksum/SHA384/50 1329s ok 1163 /checksum/SHA384/51 1329s ok 1164 /checksum/SHA384/52 1329s ok 1165 /checksum/SHA384/53 1329s ok 1166 /checksum/SHA384/54 1329s ok 1167 /checksum/SHA384/55 1329s ok 1168 /checksum/SHA384/56 1329s ok 1169 /checksum/SHA384/57 1329s ok 1170 /checksum/SHA384/58 1329s ok 1171 /checksum/SHA384/59 1329s ok 1172 /checksum/SHA384/60 1329s ok 1173 /checksum/SHA384/61 1329s ok 1174 /checksum/SHA384/62 1329s ok 1175 /checksum/SHA384/63 1329s ok 1176 /checksum/SHA384/64 1329s ok 1177 /checksum/SHA384/65 1329s ok 1178 /checksum/SHA384/66 1329s ok 1179 /checksum/SHA384/67 1329s ok 1180 /checksum/SHA384/68 1329s ok 1181 /checksum/SHA384/69 1329s ok 1182 /checksum/SHA384/70 1329s ok 1183 /checksum/SHA384/71 1329s ok 1184 /checksum/SHA384/72 1329s ok 1185 /checksum/SHA384/73 1329s ok 1186 /checksum/SHA384/74 1329s ok 1187 /checksum/SHA384/75 1329s ok 1188 /checksum/SHA384/76 1329s ok 1189 /checksum/SHA384/77 1329s ok 1190 /checksum/SHA384/78 1329s ok 1191 /checksum/SHA384/79 1329s ok 1192 /checksum/SHA384/80 1329s ok 1193 /checksum/SHA384/81 1329s ok 1194 /checksum/SHA384/82 1329s ok 1195 /checksum/SHA384/83 1329s ok 1196 /checksum/SHA384/84 1329s ok 1197 /checksum/SHA384/85 1329s ok 1198 /checksum/SHA384/86 1329s ok 1199 /checksum/SHA384/87 1329s ok 1200 /checksum/SHA384/88 1329s ok 1201 /checksum/SHA384/89 1329s ok 1202 /checksum/SHA384/90 1329s ok 1203 /checksum/SHA384/91 1329s ok 1204 /checksum/SHA384/92 1329s ok 1205 /checksum/SHA384/93 1329s ok 1206 /checksum/SHA384/94 1329s ok 1207 /checksum/SHA384/95 1329s ok 1208 /checksum/SHA384/96 1329s ok 1209 /checksum/SHA384/97 1329s ok 1210 /checksum/SHA384/98 1329s ok 1211 /checksum/SHA384/99 1329s ok 1212 /checksum/SHA384/100 1329s ok 1213 /checksum/SHA384/101 1329s ok 1214 /checksum/SHA384/102 1329s ok 1215 /checksum/SHA384/103 1329s ok 1216 /checksum/SHA384/104 1329s ok 1217 /checksum/SHA384/105 1329s ok 1218 /checksum/SHA384/106 1329s ok 1219 /checksum/SHA384/107 1329s ok 1220 /checksum/SHA384/108 1329s ok 1221 /checksum/SHA384/109 1329s ok 1222 /checksum/SHA384/110 1329s ok 1223 /checksum/SHA384/111 1329s ok 1224 /checksum/SHA384/112 1329s ok 1225 /checksum/SHA384/113 1329s ok 1226 /checksum/SHA384/114 1329s ok 1227 /checksum/SHA384/115 1329s ok 1228 /checksum/SHA384/116 1329s ok 1229 /checksum/SHA384/117 1329s ok 1230 /checksum/SHA384/118 1329s ok 1231 /checksum/SHA384/119 1329s ok 1232 /checksum/SHA384/120 1329s ok 1233 /checksum/SHA384/121 1329s ok 1234 /checksum/SHA384/122 1329s ok 1235 /checksum/SHA384/123 1329s ok 1236 /checksum/SHA384/124 1329s ok 1237 /checksum/SHA384/125 1329s ok 1238 /checksum/SHA384/126 1329s ok 1239 /checksum/SHA384/127 1329s ok 1240 /checksum/SHA384/128 1329s ok 1241 /checksum/SHA384/129 1329s ok 1242 /checksum/SHA384/130 1329s ok 1243 /checksum/SHA384/131 1329s ok 1244 /checksum/SHA384/132 1329s ok 1245 /checksum/SHA384/133 1329s ok 1246 /checksum/SHA384/134 1329s ok 1247 /checksum/SHA384/135 1329s ok 1248 /checksum/SHA384/136 1329s ok 1249 /checksum/SHA384/137 1329s ok 1250 /checksum/SHA384/138 1329s ok 1251 /checksum/SHA384/139 1329s ok 1252 /checksum/SHA384/140 1329s ok 1253 /checksum/SHA384/141 1329s ok 1254 /checksum/SHA384/142 1329s ok 1255 /checksum/SHA384/143 1329s ok 1256 /checksum/SHA384/144 1329s ok 1257 /checksum/SHA384/145 1329s ok 1258 /checksum/SHA384/146 1329s ok 1259 /checksum/SHA384/147 1329s ok 1260 /checksum/SHA384/148 1329s ok 1261 /checksum/SHA384/149 1329s ok 1262 /checksum/SHA384/150 1329s ok 1263 /checksum/SHA384/151 1329s ok 1264 /checksum/SHA384/152 1329s ok 1265 /checksum/SHA384/153 1329s ok 1266 /checksum/SHA384/154 1329s ok 1267 /checksum/SHA384/155 1329s ok 1268 /checksum/SHA384/156 1329s ok 1269 /checksum/SHA384/157 1329s ok 1270 /checksum/SHA384/158 1329s ok 1271 /checksum/SHA384/159 1329s ok 1272 /checksum/SHA384/160 1329s ok 1273 /checksum/SHA384/161 1329s ok 1274 /checksum/SHA384/162 1329s ok 1275 /checksum/SHA384/163 1329s ok 1276 /checksum/SHA384/164 1329s ok 1277 /checksum/SHA384/165 1329s ok 1278 /checksum/SHA384/166 1329s ok 1279 /checksum/SHA384/167 1329s ok 1280 /checksum/SHA384/168 1329s ok 1281 /checksum/SHA384/169 1329s ok 1282 /checksum/SHA384/170 1329s ok 1283 /checksum/SHA384/171 1329s ok 1284 /checksum/SHA384/172 1329s ok 1285 /checksum/SHA384/173 1329s ok 1286 /checksum/SHA384/174 1329s ok 1287 /checksum/SHA384/175 1329s ok 1288 /checksum/SHA384/176 1329s ok 1289 /checksum/SHA384/177 1329s ok 1290 /checksum/SHA384/178 1329s ok 1291 /checksum/SHA384/179 1329s ok 1292 /checksum/SHA384/180 1329s ok 1293 /checksum/SHA384/181 1329s ok 1294 /checksum/SHA384/182 1329s ok 1295 /checksum/SHA384/183 1329s ok 1296 /checksum/SHA384/string 1329s ok 1297 /checksum/SHA384/bytes 1329s # Start of reset tests 1329s ok 1298 /checksum/SHA384/reset/0 1329s ok 1299 /checksum/SHA384/reset/1 1329s ok 1300 /checksum/SHA384/reset/2 1329s ok 1301 /checksum/SHA384/reset/3 1329s ok 1302 /checksum/SHA384/reset/4 1329s ok 1303 /checksum/SHA384/reset/5 1329s ok 1304 /checksum/SHA384/reset/6 1329s ok 1305 /checksum/SHA384/reset/7 1329s ok 1306 /checksum/SHA384/reset/8 1329s ok 1307 /checksum/SHA384/reset/9 1329s ok 1308 /checksum/SHA384/reset/10 1329s ok 1309 /checksum/SHA384/reset/11 1329s ok 1310 /checksum/SHA384/reset/12 1329s ok 1311 /checksum/SHA384/reset/13 1329s ok 1312 /checksum/SHA384/reset/14 1329s ok 1313 /checksum/SHA384/reset/15 1329s ok 1314 /checksum/SHA384/reset/16 1329s ok 1315 /checksum/SHA384/reset/17 1329s ok 1316 /checksum/SHA384/reset/18 1329s ok 1317 /checksum/SHA384/reset/19 1329s ok 1318 /checksum/SHA384/reset/20 1329s ok 1319 /checksum/SHA384/reset/21 1329s ok 1320 /checksum/SHA384/reset/22 1329s ok 1321 /checksum/SHA384/reset/23 1329s ok 1322 /checksum/SHA384/reset/24 1329s ok 1323 /checksum/SHA384/reset/25 1329s ok 1324 /checksum/SHA384/reset/26 1329s ok 1325 /checksum/SHA384/reset/27 1329s ok 1326 /checksum/SHA384/reset/28 1329s ok 1327 /checksum/SHA384/reset/29 1329s ok 1328 /checksum/SHA384/reset/30 1329s ok 1329 /checksum/SHA384/reset/31 1329s ok 1330 /checksum/SHA384/reset/32 1329s ok 1331 /checksum/SHA384/reset/33 1329s ok 1332 /checksum/SHA384/reset/34 1329s ok 1333 /checksum/SHA384/reset/35 1329s ok 1334 /checksum/SHA384/reset/36 1329s ok 1335 /checksum/SHA384/reset/37 1329s ok 1336 /checksum/SHA384/reset/38 1329s ok 1337 /checksum/SHA384/reset/39 1329s ok 1338 /checksum/SHA384/reset/40 1329s ok 1339 /checksum/SHA384/reset/41 1329s ok 1340 /checksum/SHA384/reset/42 1329s ok 1341 /checksum/SHA384/reset/43 1329s ok 1342 /checksum/SHA384/reset/44 1329s ok 1343 /checksum/SHA384/reset/45 1329s ok 1344 /checksum/SHA384/reset/46 1329s ok 1345 /checksum/SHA384/reset/47 1329s ok 1346 /checksum/SHA384/reset/48 1329s ok 1347 /checksum/SHA384/reset/49 1329s ok 1348 /checksum/SHA384/reset/50 1329s ok 1349 /checksum/SHA384/reset/51 1329s ok 1350 /checksum/SHA384/reset/52 1329s ok 1351 /checksum/SHA384/reset/53 1329s ok 1352 /checksum/SHA384/reset/54 1329s ok 1353 /checksum/SHA384/reset/55 1329s ok 1354 /checksum/SHA384/reset/56 1329s ok 1355 /checksum/SHA384/reset/57 1329s ok 1356 /checksum/SHA384/reset/58 1329s ok 1357 /checksum/SHA384/reset/59 1329s ok 1358 /checksum/SHA384/reset/60 1329s ok 1359 /checksum/SHA384/reset/61 1329s ok 1360 /checksum/SHA384/reset/62 1329s ok 1361 /checksum/SHA384/reset/63 1329s ok 1362 /checksum/SHA384/reset/64 1329s ok 1363 /checksum/SHA384/reset/65 1329s ok 1364 /checksum/SHA384/reset/66 1329s ok 1365 /checksum/SHA384/reset/67 1329s ok 1366 /checksum/SHA384/reset/68 1329s ok 1367 /checksum/SHA384/reset/69 1329s ok 1368 /checksum/SHA384/reset/70 1329s ok 1369 /checksum/SHA384/reset/71 1329s ok 1370 /checksum/SHA384/reset/72 1329s ok 1371 /checksum/SHA384/reset/73 1329s ok 1372 /checksum/SHA384/reset/74 1329s ok 1373 /checksum/SHA384/reset/75 1329s ok 1374 /checksum/SHA384/reset/76 1329s ok 1375 /checksum/SHA384/reset/77 1329s ok 1376 /checksum/SHA384/reset/78 1329s ok 1377 /checksum/SHA384/reset/79 1329s ok 1378 /checksum/SHA384/reset/80 1329s ok 1379 /checksum/SHA384/reset/81 1329s ok 1380 /checksum/SHA384/reset/82 1329s ok 1381 /checksum/SHA384/reset/83 1329s ok 1382 /checksum/SHA384/reset/84 1329s ok 1383 /checksum/SHA384/reset/85 1329s ok 1384 /checksum/SHA384/reset/86 1329s ok 1385 /checksum/SHA384/reset/87 1329s ok 1386 /checksum/SHA384/reset/88 1329s ok 1387 /checksum/SHA384/reset/89 1329s ok 1388 /checksum/SHA384/reset/90 1329s ok 1389 /checksum/SHA384/reset/91 1329s ok 1390 /checksum/SHA384/reset/92 1329s ok 1391 /checksum/SHA384/reset/93 1329s ok 1392 /checksum/SHA384/reset/94 1329s ok 1393 /checksum/SHA384/reset/95 1329s ok 1394 /checksum/SHA384/reset/96 1329s ok 1395 /checksum/SHA384/reset/97 1329s ok 1396 /checksum/SHA384/reset/98 1329s ok 1397 /checksum/SHA384/reset/99 1329s ok 1398 /checksum/SHA384/reset/100 1329s ok 1399 /checksum/SHA384/reset/101 1329s ok 1400 /checksum/SHA384/reset/102 1329s ok 1401 /checksum/SHA384/reset/103 1329s ok 1402 /checksum/SHA384/reset/104 1329s ok 1403 /checksum/SHA384/reset/105 1329s ok 1404 /checksum/SHA384/reset/106 1329s ok 1405 /checksum/SHA384/reset/107 1329s ok 1406 /checksum/SHA384/reset/108 1329s ok 1407 /checksum/SHA384/reset/109 1329s ok 1408 /checksum/SHA384/reset/110 1329s ok 1409 /checksum/SHA384/reset/111 1329s ok 1410 /checksum/SHA384/reset/112 1329s ok 1411 /checksum/SHA384/reset/113 1329s ok 1412 /checksum/SHA384/reset/114 1329s ok 1413 /checksum/SHA384/reset/115 1329s ok 1414 /checksum/SHA384/reset/116 1329s ok 1415 /checksum/SHA384/reset/117 1329s ok 1416 /checksum/SHA384/reset/118 1329s ok 1417 /checksum/SHA384/reset/119 1329s ok 1418 /checksum/SHA384/reset/120 1329s ok 1419 /checksum/SHA384/reset/121 1329s ok 1420 /checksum/SHA384/reset/122 1329s ok 1421 /checksum/SHA384/reset/123 1329s ok 1422 /checksum/SHA384/reset/124 1329s ok 1423 /checksum/SHA384/reset/125 1329s ok 1424 /checksum/SHA384/reset/126 1329s ok 1425 /checksum/SHA384/reset/127 1329s ok 1426 /checksum/SHA384/reset/128 1329s ok 1427 /checksum/SHA384/reset/129 1329s ok 1428 /checksum/SHA384/reset/130 1329s ok 1429 /checksum/SHA384/reset/131 1329s ok 1430 /checksum/SHA384/reset/132 1329s ok 1431 /checksum/SHA384/reset/133 1329s ok 1432 /checksum/SHA384/reset/134 1329s ok 1433 /checksum/SHA384/reset/135 1329s ok 1434 /checksum/SHA384/reset/136 1329s ok 1435 /checksum/SHA384/reset/137 1329s ok 1436 /checksum/SHA384/reset/138 1329s ok 1437 /checksum/SHA384/reset/139 1329s ok 1438 /checksum/SHA384/reset/140 1329s ok 1439 /checksum/SHA384/reset/141 1329s ok 1440 /checksum/SHA384/reset/142 1329s ok 1441 /checksum/SHA384/reset/143 1329s ok 1442 /checksum/SHA384/reset/144 1329s ok 1443 /checksum/SHA384/reset/145 1329s ok 1444 /checksum/SHA384/reset/146 1329s ok 1445 /checksum/SHA384/reset/147 1329s ok 1446 /checksum/SHA384/reset/148 1329s ok 1447 /checksum/SHA384/reset/149 1329s ok 1448 /checksum/SHA384/reset/150 1329s ok 1449 /checksum/SHA384/reset/151 1329s ok 1450 /checksum/SHA384/reset/152 1329s ok 1451 /checksum/SHA384/reset/153 1329s ok 1452 /checksum/SHA384/reset/154 1329s ok 1453 /checksum/SHA384/reset/155 1329s ok 1454 /checksum/SHA384/reset/156 1329s ok 1455 /checksum/SHA384/reset/157 1329s ok 1456 /checksum/SHA384/reset/158 1329s ok 1457 /checksum/SHA384/reset/159 1329s ok 1458 /checksum/SHA384/reset/160 1329s ok 1459 /checksum/SHA384/reset/161 1329s ok 1460 /checksum/SHA384/reset/162 1329s ok 1461 /checksum/SHA384/reset/163 1329s ok 1462 /checksum/SHA384/reset/164 1329s ok 1463 /checksum/SHA384/reset/165 1329s ok 1464 /checksum/SHA384/reset/166 1329s ok 1465 /checksum/SHA384/reset/167 1329s ok 1466 /checksum/SHA384/reset/168 1329s ok 1467 /checksum/SHA384/reset/169 1329s ok 1468 /checksum/SHA384/reset/170 1329s ok 1469 /checksum/SHA384/reset/171 1329s ok 1470 /checksum/SHA384/reset/172 1329s ok 1471 /checksum/SHA384/reset/173 1329s ok 1472 /checksum/SHA384/reset/174 1329s ok 1473 /checksum/SHA384/reset/175 1329s ok 1474 /checksum/SHA384/reset/176 1329s ok 1475 /checksum/SHA384/reset/177 1329s ok 1476 /checksum/SHA384/reset/178 1329s ok 1477 /checksum/SHA384/reset/179 1329s ok 1478 /checksum/SHA384/reset/180 1329s ok 1479 /checksum/SHA384/reset/181 1329s ok 1480 /checksum/SHA384/reset/182 1329s ok 1481 /checksum/SHA384/reset/183 1329s # End of reset tests 1329s # End of SHA384 tests 1329s # Start of SHA512 tests 1329s ok 1482 /checksum/SHA512/0 1329s ok 1483 /checksum/SHA512/1 1329s ok 1484 /checksum/SHA512/2 1329s ok 1485 /checksum/SHA512/3 1329s ok 1486 /checksum/SHA512/4 1329s ok 1487 /checksum/SHA512/5 1329s ok 1488 /checksum/SHA512/6 1329s ok 1489 /checksum/SHA512/7 1329s ok 1490 /checksum/SHA512/8 1329s ok 1491 /checksum/SHA512/9 1329s ok 1492 /checksum/SHA512/10 1329s ok 1493 /checksum/SHA512/11 1329s ok 1494 /checksum/SHA512/12 1329s ok 1495 /checksum/SHA512/13 1329s ok 1496 /checksum/SHA512/14 1329s ok 1497 /checksum/SHA512/15 1329s ok 1498 /checksum/SHA512/16 1329s ok 1499 /checksum/SHA512/17 1329s ok 1500 /checksum/SHA512/18 1329s ok 1501 /checksum/SHA512/19 1329s ok 1502 /checksum/SHA512/20 1329s ok 1503 /checksum/SHA512/21 1329s ok 1504 /checksum/SHA512/22 1329s ok 1505 /checksum/SHA512/23 1329s ok 1506 /checksum/SHA512/24 1329s ok 1507 /checksum/SHA512/25 1329s ok 1508 /checksum/SHA512/26 1329s ok 1509 /checksum/SHA512/27 1329s ok 1510 /checksum/SHA512/28 1329s ok 1511 /checksum/SHA512/29 1329s ok 1512 /checksum/SHA512/30 1329s ok 1513 /checksum/SHA512/31 1329s ok 1514 /checksum/SHA512/32 1329s ok 1515 /checksum/SHA512/33 1329s ok 1516 /checksum/SHA512/34 1329s ok 1517 /checksum/SHA512/35 1329s ok 1518 /checksum/SHA512/36 1329s ok 1519 /checksum/SHA512/37 1329s ok 1520 /checksum/SHA512/38 1329s ok 1521 /checksum/SHA512/39 1329s ok 1522 /checksum/SHA512/40 1329s ok 1523 /checksum/SHA512/41 1329s ok 1524 /checksum/SHA512/42 1329s ok 1525 /checksum/SHA512/43 1329s ok 1526 /checksum/SHA512/44 1329s ok 1527 /checksum/SHA512/45 1329s ok 1528 /checksum/SHA512/46 1329s ok 1529 /checksum/SHA512/47 1329s ok 1530 /checksum/SHA512/48 1329s ok 1531 /checksum/SHA512/49 1329s ok 1532 /checksum/SHA512/50 1329s ok 1533 /checksum/SHA512/51 1329s ok 1534 /checksum/SHA512/52 1329s ok 1535 /checksum/SHA512/53 1329s ok 1536 /checksum/SHA512/54 1329s ok 1537 /checksum/SHA512/55 1329s ok 1538 /checksum/SHA512/56 1329s ok 1539 /checksum/SHA512/57 1329s ok 1540 /checksum/SHA512/58 1329s ok 1541 /checksum/SHA512/59 1329s ok 1542 /checksum/SHA512/60 1329s ok 1543 /checksum/SHA512/61 1329s ok 1544 /checksum/SHA512/62 1329s ok 1545 /checksum/SHA512/63 1329s ok 1546 /checksum/SHA512/64 1329s ok 1547 /checksum/SHA512/65 1329s ok 1548 /checksum/SHA512/66 1329s ok 1549 /checksum/SHA512/67 1329s ok 1550 /checksum/SHA512/68 1329s ok 1551 /checksum/SHA512/69 1329s ok 1552 /checksum/SHA512/70 1329s ok 1553 /checksum/SHA512/71 1329s ok 1554 /checksum/SHA512/72 1329s ok 1555 /checksum/SHA512/73 1329s ok 1556 /checksum/SHA512/74 1329s ok 1557 /checksum/SHA512/75 1329s ok 1558 /checksum/SHA512/76 1329s ok 1559 /checksum/SHA512/77 1329s ok 1560 /checksum/SHA512/78 1329s ok 1561 /checksum/SHA512/79 1329s ok 1562 /checksum/SHA512/80 1329s ok 1563 /checksum/SHA512/81 1329s ok 1564 /checksum/SHA512/82 1329s ok 1565 /checksum/SHA512/83 1329s ok 1566 /checksum/SHA512/84 1329s ok 1567 /checksum/SHA512/85 1329s ok 1568 /checksum/SHA512/86 1329s ok 1569 /checksum/SHA512/87 1329s ok 1570 /checksum/SHA512/88 1329s ok 1571 /checksum/SHA512/89 1329s ok 1572 /checksum/SHA512/90 1329s ok 1573 /checksum/SHA512/91 1329s ok 1574 /checksum/SHA512/92 1329s ok 1575 /checksum/SHA512/93 1329s ok 1576 /checksum/SHA512/94 1329s ok 1577 /checksum/SHA512/95 1329s ok 1578 /checksum/SHA512/96 1329s ok 1579 /checksum/SHA512/97 1329s ok 1580 /checksum/SHA512/98 1329s ok 1581 /checksum/SHA512/99 1329s ok 1582 /checksum/SHA512/100 1329s ok 1583 /checksum/SHA512/101 1329s ok 1584 /checksum/SHA512/102 1329s ok 1585 /checksum/SHA512/103 1329s ok 1586 /checksum/SHA512/104 1329s ok 1587 /checksum/SHA512/105 1329s ok 1588 /checksum/SHA512/106 1329s ok 1589 /checksum/SHA512/107 1329s ok 1590 /checksum/SHA512/108 1329s ok 1591 /checksum/SHA512/109 1329s ok 1592 /checksum/SHA512/110 1329s ok 1593 /checksum/SHA512/111 1329s ok 1594 /checksum/SHA512/112 1329s ok 1595 /checksum/SHA512/113 1329s ok 1596 /checksum/SHA512/114 1329s ok 1597 /checksum/SHA512/115 1329s ok 1598 /checksum/SHA512/116 1329s ok 1599 /checksum/SHA512/117 1329s ok 1600 /checksum/SHA512/118 1329s ok 1601 /checksum/SHA512/119 1329s ok 1602 /checksum/SHA512/120 1329s ok 1603 /checksum/SHA512/121 1329s ok 1604 /checksum/SHA512/122 1329s ok 1605 /checksum/SHA512/123 1329s ok 1606 /checksum/SHA512/124 1329s ok 1607 /checksum/SHA512/125 1329s ok 1608 /checksum/SHA512/126 1329s ok 1609 /checksum/SHA512/127 1329s ok 1610 /checksum/SHA512/128 1329s ok 1611 /checksum/SHA512/129 1329s ok 1612 /checksum/SHA512/130 1329s ok 1613 /checksum/SHA512/131 1329s ok 1614 /checksum/SHA512/132 1329s ok 1615 /checksum/SHA512/133 1329s ok 1616 /checksum/SHA512/134 1329s ok 1617 /checksum/SHA512/135 1329s ok 1618 /checksum/SHA512/136 1329s ok 1619 /checksum/SHA512/137 1329s ok 1620 /checksum/SHA512/138 1329s ok 1621 /checksum/SHA512/139 1329s ok 1622 /checksum/SHA512/140 1329s ok 1623 /checksum/SHA512/141 1329s ok 1624 /checksum/SHA512/142 1329s ok 1625 /checksum/SHA512/143 1329s ok 1626 /checksum/SHA512/144 1329s ok 1627 /checksum/SHA512/145 1329s ok 1628 /checksum/SHA512/146 1329s ok 1629 /checksum/SHA512/147 1329s ok 1630 /checksum/SHA512/148 1329s ok 1631 /checksum/SHA512/149 1329s ok 1632 /checksum/SHA512/150 1329s ok 1633 /checksum/SHA512/151 1329s ok 1634 /checksum/SHA512/152 1329s ok 1635 /checksum/SHA512/153 1329s ok 1636 /checksum/SHA512/154 1329s ok 1637 /checksum/SHA512/155 1329s ok 1638 /checksum/SHA512/156 1329s ok 1639 /checksum/SHA512/157 1329s ok 1640 /checksum/SHA512/158 1329s ok 1641 /checksum/SHA512/159 1329s ok 1642 /checksum/SHA512/160 1329s ok 1643 /checksum/SHA512/161 1329s ok 1644 /checksum/SHA512/162 1329s ok 1645 /checksum/SHA512/163 1329s ok 1646 /checksum/SHA512/164 1329s ok 1647 /checksum/SHA512/165 1329s ok 1648 /checksum/SHA512/166 1329s ok 1649 /checksum/SHA512/167 1329s ok 1650 /checksum/SHA512/168 1329s ok 1651 /checksum/SHA512/169 1329s ok 1652 /checksum/SHA512/170 1329s ok 1653 /checksum/SHA512/171 1329s ok 1654 /checksum/SHA512/172 1329s ok 1655 /checksum/SHA512/173 1329s ok 1656 /checksum/SHA512/174 1329s ok 1657 /checksum/SHA512/175 1329s ok 1658 /checksum/SHA512/176 1329s ok 1659 /checksum/SHA512/177 1329s ok 1660 /checksum/SHA512/178 1329s ok 1661 /checksum/SHA512/179 1329s ok 1662 /checksum/SHA512/180 1329s ok 1663 /checksum/SHA512/181 1329s ok 1664 /checksum/SHA512/182 1329s ok 1665 /checksum/SHA512/183 1329s ok 1666 /checksum/SHA512/string 1329s ok 1667 /checksum/SHA512/bytes 1329s # Start of reset tests 1329s ok 1668 /checksum/SHA512/reset/0 1329s ok 1669 /checksum/SHA512/reset/1 1329s ok 1670 /checksum/SHA512/reset/2 1329s ok 1671 /checksum/SHA512/reset/3 1329s ok 1672 /checksum/SHA512/reset/4 1329s ok 1673 /checksum/SHA512/reset/5 1329s ok 1674 /checksum/SHA512/reset/6 1329s ok 1675 /checksum/SHA512/reset/7 1329s ok 1676 /checksum/SHA512/reset/8 1329s ok 1677 /checksum/SHA512/reset/9 1329s ok 1678 /checksum/SHA512/reset/10 1329s ok 1679 /checksum/SHA512/reset/11 1329s ok 1680 /checksum/SHA512/reset/12 1329s ok 1681 /checksum/SHA512/reset/13 1329s ok 1682 /checksum/SHA512/reset/14 1329s ok 1683 /checksum/SHA512/reset/15 1329s ok 1684 /checksum/SHA512/reset/16 1329s ok 1685 /checksum/SHA512/reset/17 1329s ok 1686 /checksum/SHA512/reset/18 1329s ok 1687 /checksum/SHA512/reset/19 1329s ok 1688 /checksum/SHA512/reset/20 1329s ok 1689 /checksum/SHA512/reset/21 1329s ok 1690 /checksum/SHA512/reset/22 1329s ok 1691 /checksum/SHA512/reset/23 1329s ok 1692 /checksum/SHA512/reset/24 1329s ok 1693 /checksum/SHA512/reset/25 1329s ok 1694 /checksum/SHA512/reset/26 1329s ok 1695 /checksum/SHA512/reset/27 1329s ok 1696 /checksum/SHA512/reset/28 1329s ok 1697 /checksum/SHA512/reset/29 1329s ok 1698 /checksum/SHA512/reset/30 1329s ok 1699 /checksum/SHA512/reset/31 1329s ok 1700 /checksum/SHA512/reset/32 1329s ok 1701 /checksum/SHA512/reset/33 1329s ok 1702 /checksum/SHA512/reset/34 1329s ok 1703 /checksum/SHA512/reset/35 1329s ok 1704 /checksum/SHA512/reset/36 1329s ok 1705 /checksum/SHA512/reset/37 1329s ok 1706 /checksum/SHA512/reset/38 1329s ok 1707 /checksum/SHA512/reset/39 1329s ok 1708 /checksum/SHA512/reset/40 1329s ok 1709 /checksum/SHA512/reset/41 1329s ok 1710 /checksum/SHA512/reset/42 1329s ok 1711 /checksum/SHA512/reset/43 1329s ok 1712 /checksum/SHA512/reset/44 1329s ok 1713 /checksum/SHA512/reset/45 1329s ok 1714 /checksum/SHA512/reset/46 1329s ok 1715 /checksum/SHA512/reset/47 1329s ok 1716 /checksum/SHA512/reset/48 1329s ok 1717 /checksum/SHA512/reset/49 1329s ok 1718 /checksum/SHA512/reset/50 1329s ok 1719 /checksum/SHA512/reset/51 1329s ok 1720 /checksum/SHA512/reset/52 1329s ok 1721 /checksum/SHA512/reset/53 1329s ok 1722 /checksum/SHA512/reset/54 1329s ok 1723 /checksum/SHA512/reset/55 1329s ok 1724 /checksum/SHA512/reset/56 1329s ok 1725 /checksum/SHA512/reset/57 1329s ok 1726 /checksum/SHA512/reset/58 1329s ok 1727 /checksum/SHA512/reset/59 1329s ok 1728 /checksum/SHA512/reset/60 1329s ok 1729 /checksum/SHA512/reset/61 1329s ok 1730 /checksum/SHA512/reset/62 1329s ok 1731 /checksum/SHA512/reset/63 1329s ok 1732 /checksum/SHA512/reset/64 1329s ok 1733 /checksum/SHA512/reset/65 1329s ok 1734 /checksum/SHA512/reset/66 1329s ok 1735 /checksum/SHA512/reset/67 1329s ok 1736 /checksum/SHA512/reset/68 1329s ok 1737 /checksum/SHA512/reset/69 1329s ok 1738 /checksum/SHA512/reset/70 1329s ok 1739 /checksum/SHA512/reset/71 1329s ok 1740 /checksum/SHA512/reset/72 1329s ok 1741 /checksum/SHA512/reset/73 1329s ok 1742 /checksum/SHA512/reset/74 1329s ok 1743 /checksum/SHA512/reset/75 1329s ok 1744 /checksum/SHA512/reset/76 1329s ok 1745 /checksum/SHA512/reset/77 1329s ok 1746 /checksum/SHA512/reset/78 1329s ok 1747 /checksum/SHA512/reset/79 1329s ok 1748 /checksum/SHA512/reset/80 1329s ok 1749 /checksum/SHA512/reset/81 1329s ok 1750 /checksum/SHA512/reset/82 1329s ok 1751 /checksum/SHA512/reset/83 1329s ok 1752 /checksum/SHA512/reset/84 1329s ok 1753 /checksum/SHA512/reset/85 1329s ok 1754 /checksum/SHA512/reset/86 1329s ok 1755 /checksum/SHA512/reset/87 1329s ok 1756 /checksum/SHA512/reset/88 1329s ok 1757 /checksum/SHA512/reset/89 1329s ok 1758 /checksum/SHA512/reset/90 1329s ok 1759 /checksum/SHA512/reset/91 1329s ok 1760 /checksum/SHA512/reset/92 1329s ok 1761 /checksum/SHA512/reset/93 1329s ok 1762 /checksum/SHA512/reset/94 1329s ok 1763 /checksum/SHA512/reset/95 1329s ok 1764 /checksum/SHA512/reset/96 1329s ok 1765 /checksum/SHA512/reset/97 1329s ok 1766 /checksum/SHA512/reset/98 1329s ok 1767 /checksum/SHA512/reset/99 1329s ok 1768 /checksum/SHA512/reset/100 1329s ok 1769 /checksum/SHA512/reset/101 1329s ok 1770 /checksum/SHA512/reset/102 1329s ok 1771 /checksum/SHA512/reset/103 1329s ok 1772 /checksum/SHA512/reset/104 1329s ok 1773 /checksum/SHA512/reset/105 1329s ok 1774 /checksum/SHA512/reset/106 1329s ok 1775 /checksum/SHA512/reset/107 1329s ok 1776 /checksum/SHA512/reset/108 1329s ok 1777 /checksum/SHA512/reset/109 1329s ok 1778 /checksum/SHA512/reset/110 1329s ok 1779 /checksum/SHA512/reset/111 1329s ok 1780 /checksum/SHA512/reset/112 1329s ok 1781 /checksum/SHA512/reset/113 1329s ok 1782 /checksum/SHA512/reset/114 1329s ok 1783 /checksum/SHA512/reset/115 1329s ok 1784 /checksum/SHA512/reset/116 1329s ok 1785 /checksum/SHA512/reset/117 1329s ok 1786 /checksum/SHA512/reset/118 1329s ok 1787 /checksum/SHA512/reset/119 1329s ok 1788 /checksum/SHA512/reset/120 1329s ok 1789 /checksum/SHA512/reset/121 1329s ok 1790 /checksum/SHA512/reset/122 1329s ok 1791 /checksum/SHA512/reset/123 1329s ok 1792 /checksum/SHA512/reset/124 1329s ok 1793 /checksum/SHA512/reset/125 1329s ok 1794 /checksum/SHA512/reset/126 1329s ok 1795 /checksum/SHA512/reset/127 1329s ok 1796 /checksum/SHA512/reset/128 1329s ok 1797 /checksum/SHA512/reset/129 1329s ok 1798 /checksum/SHA512/reset/130 1329s ok 1799 /checksum/SHA512/reset/131 1329s ok 1800 /checksum/SHA512/reset/132 1329s ok 1801 /checksum/SHA512/reset/133 1329s ok 1802 /checksum/SHA512/reset/134 1329s ok 1803 /checksum/SHA512/reset/135 1329s ok 1804 /checksum/SHA512/reset/136 1329s ok 1805 /checksum/SHA512/reset/137 1329s ok 1806 /checksum/SHA512/reset/138 1329s ok 1807 /checksum/SHA512/reset/139 1329s ok 1808 /checksum/SHA512/reset/140 1329s ok 1809 /checksum/SHA512/reset/141 1329s ok 1810 /checksum/SHA512/reset/142 1329s ok 1811 /checksum/SHA512/reset/143 1329s ok 1812 /checksum/SHA512/reset/144 1329s ok 1813 /checksum/SHA512/reset/145 1329s ok 1814 /checksum/SHA512/reset/146 1329s ok 1815 /checksum/SHA512/reset/147 1329s ok 1816 /checksum/SHA512/reset/148 1329s ok 1817 /checksum/SHA512/reset/149 1329s ok 1818 /checksum/SHA512/reset/150 1329s ok 1819 /checksum/SHA512/reset/151 1329s ok 1820 /checksum/SHA512/reset/152 1329s ok 1821 /checksum/SHA512/reset/153 1329s ok 1822 /checksum/SHA512/reset/154 1329s ok 1823 /checksum/SHA512/reset/155 1329s ok 1824 /checksum/SHA512/reset/156 1329s ok 1825 /checksum/SHA512/reset/157 1329s ok 1826 /checksum/SHA512/reset/158 1329s ok 1827 /checksum/SHA512/reset/159 1329s ok 1828 /checksum/SHA512/reset/160 1329s ok 1829 /checksum/SHA512/reset/161 1329s ok 1830 /checksum/SHA512/reset/162 1329s ok 1831 /checksum/SHA512/reset/163 1329s ok 1832 /checksum/SHA512/reset/164 1329s ok 1833 /checksum/SHA512/reset/165 1329s ok 1834 /checksum/SHA512/reset/166 1329s ok 1835 /checksum/SHA512/reset/167 1329s ok 1836 /checksum/SHA512/reset/168 1329s ok 1837 /checksum/SHA512/reset/169 1329s ok 1838 /checksum/SHA512/reset/170 1329s ok 1839 /checksum/SHA512/reset/171 1329s ok 1840 /checksum/SHA512/reset/172 1329s ok 1841 /checksum/SHA512/reset/173 1329s ok 1842 /checksum/SHA512/reset/174 1329s ok 1843 /checksum/SHA512/reset/175 1329s ok 1844 /checksum/SHA512/reset/176 1329s ok 1845 /checksum/SHA512/reset/177 1329s ok 1846 /checksum/SHA512/reset/178 1329s ok 1847 /checksum/SHA512/reset/179 1329s ok 1848 /checksum/SHA512/reset/180 1329s ok 1849 /checksum/SHA512/reset/181 1329s ok - glib/checksum.test 1329s # Running test: glib/macros.test 1329s ok 1850 /checksum/SHA512/reset/182 1329s ok 1851 /checksum/SHA512/reset/183 1329s # End of reset tests 1329s # End of SHA512 tests 1329s # End of checksum tests 1329s ok - glib/macros.test 1329s # Running test: glib/cxx-20.test 1329s TAP version 14 1329s # random seed: R02S365b70ef8e704971a048db53f8d2d392 1329s 1..3 1329s # Start of alignof tests 1329s ok 1 /alignof/fallback 1329s # End of alignof tests 1329s # Start of assert tests 1329s ok 2 /assert/static 1329s # End of assert tests 1329s # Start of struct tests 1329s ok 3 /struct/sizeof_member 1329s # End of struct tests 1329s ok - glib/cxx-20.test 1329s TAP version 14 1329s # random seed: R02Seb29169440c5ae4b5b06970165e6e8da 1329s 1..2 1329s # Start of gtask tests 1329s # 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. 1329s ok 1 /gtask/name 1329s # Start of name tests 1329s # 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. 1329s ok 2 /gtask/name/macro-wrapper 1329s # End of name tests 1329s # End of gtask tests 1329s # Running test: glib/ifaceproperties.test 1329s ok - glib/ifaceproperties.test 1329s # Running test: glib/gdbus-threading.test 1329s TAP version 14 1329s # random seed: R02S4b4aa987e717ba5394b60eadefc4b5a3 1329s 1..7 1329s # Start of interface tests 1329s # Start of properties tests 1329s ok 1 /interface/properties/set 1329s ok 2 /interface/properties/notify 1329s ok 3 /interface/properties/find-overridden 1329s ok 4 /interface/properties/list-overridden 1329s ok 5 /interface/properties/find-interface 1329s ok 6 /interface/properties/list-interface 1329s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1329s ok 7 /interface/properties/not-overridden 1329s # End of properties tests 1329s # End of interface tests 1329s ok - glib/gdbus-threading.test 1329s TAP version 14 1329s # random seed: R02Sa87c2e4b59fe16b369af2c504449fa3d 1329s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1329s # Running test: glib/resources.test 1329s TAP version 14 1329s # random seed: R02S5f6d341da29973119f44e23df24fd73d 1329s 1..19 1329s # Start of resource tests 1329s ok 1 /resource/file 1329s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1329s ok 2 /resource/file-path 1329s ok 3 /resource/data 1329s ok 4 /resource/data_unaligned 1329s ok 5 /resource/data-corrupt 1329s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1329s ok 6 /resource/data-corrupt-compression 1329s ok 7 /resource/data-empty 1329s ok 8 /resource/registered 1329s ok 9 /resource/manual 1329s ok 10 /resource/manual2 1329s ok 11 /resource/automatic 1329s ok 12 /resource/module 1329s ok 13 /resource/binary-linked 1329s ok 14 /resource/64k 1329s GLib-GIO-Message: 01:00:52.414: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1329s GLib-GIO-Message: 01:00:52.414: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1329s GLib-GIO-Message: 01:00:52.414: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1329s ok 15 /resource/overlay 1329s ok 16 /resource/digits 1329s ok 17 /resource/has-children 1329s # Start of uri tests 1329s ok 18 /resource/uri/query-info 1329s ok 19 /resource/uri/file 1329s # End of uri tests 1329s # End of resource tests 1329s TAP version 14 1329s # random seed: R02S8f75e24bccf4953dfb8253115b4983db 1329s 1..3 1329s # Start of giomodule tests 1329s ok 1 /giomodule/extension-point 1329s ok 2 /giomodule/module-scan-all 1329s ok 3 /giomodule/module-scan-all-with-scope 1329s # End of giomodule tests 1329s TAP version 14 1329s # random seed: R02Sb8833c3333d7a498252f93fd12714832 1329s 1..2 1329s # Start of gobject tests 1329s ok 1 /gobject/static-iface 1329s ok 2 /gobject/dynamic-iface 1329s # End of gobject tests 1329s TAP version 14 1329s # random seed: R02Scf2a26b6409987bafa68af2ceb23a2bf 1329s 1..22 1329s # Start of snprintf tests 1329s ok 1 /snprintf/retval-and-trunc 1329s ok 2 /snprintf/%d 1329s ok 3 /snprintf/%d-invalid 1329s ok 4 /snprintf/%o 1329s ok 5 /snprintf/%u 1329s ok 6 /snprintf/%x 1329s ok 7 /snprintf/%X 1329s ok 8 /snprintf/%f 1329s ok 9 /snprintf/%e 1329s ok 10 /snprintf/%c 1329s ok 11 /snprintf/%s 1329s ok 12 /snprintf/%n 1329s ok 13 /snprintf/test-percent 1329s ok 14 /snprintf/test-positional-params 1329s ok 15 /snprintf/test-64bit 1329s # End of snprintf tests 1329s # Start of printf tests 1329s ok 16 /printf/test-percent 1329s ok 17 /printf/test-positional-params 1329s ok 18 /printf/test-64bit 1329s # Start of test-64bit tests 1329s # Start of subprocess tests 1329s # End of subprocess tests 1329s # End of test-64bit tests 1329s # End of printf tests 1329s # Start of sprintf tests 1329s ok 19 /sprintf/test-positional-params 1329s ok 20 /sprintf/upper-bound 1329s # End of sprintf tests 1329s # Start of vasprintf tests 1329s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1329s ok 21 /vasprintf/invalid-format-placeholder 1329s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1329s ok 22 /vasprintf/invalid-wide-string 1329s # End of vasprintf tests 1329s ok - glib/resources.test 1329s # Running test: glib/giomodule.test 1329s ok - glib/giomodule.test 1329s # Running test: glib/defaultiface.test 1329s ok - glib/defaultiface.test 1329s # Running test: glib/test-printf.test 1329s ok - glib/test-printf.test 1329s # Running test: glib/node.test 1329s TAP version 14 1329s # random seed: R02Saa45140a7970531f59861c95a5010b18 1329s 1..6 1329s # Start of node tests 1329s ok 1 /node/allocation 1329s ok 2 /node/construction 1329s ok 3 /node/traversal 1329s ok 4 /node/misc 1329s ok 5 /node/unlink 1329s ok 6 /node/copy 1329s # End of node tests 1329s ok - glib/node.test 1329s # Running test: glib/boxed.test 1329s TAP version 14 1329s # random seed: R02S33791f37d65c337cfed158f4d51b8075 1329s 1..27 1329s # Start of boxed tests 1329s ok 1 /boxed/define 1329s ok 2 /boxed/ownership 1329s ok 3 /boxed/closure 1329s ok 4 /boxed/date 1329s ok 5 /boxed/value 1329s ok 6 /boxed/string 1329s ok 7 /boxed/hashtable 1329s ok 8 /boxed/array 1329s ok 9 /boxed/ptrarray 1329s ok 10 /boxed/regex 1329s ok 11 /boxed/varianttype 1329s ok 12 /boxed/error 1329s ok 13 /boxed/datetime 1329s ok - glib/boxed.test 1329s ok 14 /boxed/matchinfo 1329s ok 15 /boxed/keyfile 1329s # Running test: glib/timeout.test 1329s ok 16 /boxed/mainloop 1329s ok 17 /boxed/maincontext 1329s ok 18 /boxed/source 1329s ok 19 /boxed/variantbuilder 1329s ok 20 /boxed/timezone 1329s ok 21 /boxed/pollfd 1329s ok 22 /boxed/markup 1329s ok 23 /boxed/thread 1329s ok 24 /boxed/checksum 1329s ok 25 /boxed/tree 1329s ok 26 /boxed/patternspec 1329s ok 27 /boxed/rand 1329s # End of boxed tests 1329s TAP version 14 1329s # random seed: R02S059fb62895d18140f7bc3f3e48d3e53f 1329s 1..5 1329s # Start of timeout tests 1329s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1329s # Executing: glib/timeout.test 1331s ok 1 /timeout/seconds 1331s # slow test /timeout/seconds executed in 2.10 secs 1333s ok 2 /timeout/seconds-once 1333s # slow test /timeout/seconds-once executed in 2.10 secs 1333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1334s # Executing: glib/timeout.test 1335s ok - glib/timeout.test 1335s ok 3 /timeout/weeks-overflow 1335s # slow test /timeout/weeks-overflow executed in 2.10 secs 1335s ok 4 /timeout/far-future-ready-time 1335s ok 5 /timeout/rounding # SKIP Not reliable on older ARM hardware 1335s # End of timeout tests 1335s # Running test: glib/pollable.test 1335s ok - glib/pollable.test 1335s # Running test: glib/gdbus-peer-object-manager.test 1335s TAP version 14 1335s # random seed: R02S387e9bf11cda748233d29fb9cecfe1e9 1335s 1..6 1335s # Start of pollable tests 1335s ok 1 /pollable/converter 1335s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1335s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xed19220 and GSocketClientAsyncConnectData 0xed19f78 1335s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1335s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1335s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xed20f30 for GSocketClientAsyncConnectData 0xed19f78 1335s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1335s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1335s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1335s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1335s ok 2 /pollable/socket 1335s # Start of unix tests 1335s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1335s ok - glib/gdbus-peer-object-manager.test 1335s # Running test: glib/gdbus-close-pending.test 1335s ok 3 /pollable/unix/pipe 1335s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1335s ok 4 /pollable/unix/pty 1335s # /pollable/unix/file summary: Test that regular files are not considered pollable 1335s ok 5 /pollable/unix/file 1335s # /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 1335s ok 6 /pollable/unix/nulldev 1335s # End of unix tests 1335s # End of pollable tests 1335s TAP version 14 1335s # random seed: R02Scb4ff1eda4669f44e423d8b5f952d88e 1335s 1..2 1335s # Start of gdbus tests 1335s # Start of peer-object-manager tests 1335s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/home 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/cache 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/system-config2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/config 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/system-data2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/data 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/state 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/normal/.dirs/runtime 1335s ok 1 /gdbus/peer-object-manager/normal 1335s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/home 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/cache 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/system-config2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/config 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/system-data2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/data 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/state 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_L3XA62/gdbus/peer-object-manager/root/.dirs/runtime 1335s ok 2 /gdbus/peer-object-manager/root 1335s # End of peer-object-manager tests 1335s # End of gdbus tests 1335s TAP version 14 1335s # random seed: R02S34613da8bc60ce813d340396d1da4e51 1335s 1..2 1335s # Start of gdbus tests 1335s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/home 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/cache 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/system-config2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/config 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/system-data2 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/data 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/state 1335s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_QMP352/gdbus/close-pending/.dirs/runtime 1336s ok 1 /gdbus/close-pending 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_QMP352/gdbus/unref-pending/.dirs/runtime 1336s ok - glib/gdbus-close-pending.test 1336s ok 2 /gdbus/unref-pending 1336s # End of gdbus tests 1336s # Running test: glib/convert.test 1336s TAP version 14 1336s # random seed: R02Sbc315b886193f6bd58e4c3c33c5c4711 1336s 1..14 1336s # Start of conversion tests 1336s ok 1 /conversion/no-conv 1336s ok 2 /conversion/iconv-state 1336s ok 3 /conversion/illegal-sequence 1336s ok 4 /conversion/byte-order 1336s ok 5 /conversion/unicode 1336s ok 6 /conversion/filename-utf8 1336s ok 7 /conversion/filename-display 1336s ok 8 /conversion/convert-embedded-nul 1336s # Start of locale-to-utf8 tests 1336s ok 9 /conversion/locale-to-utf8/embedded-nul 1336s # Start of embedded-nul tests 1336s # Start of subprocess tests 1336s # End of subprocess tests 1336s # End of embedded-nul tests 1336s # End of locale-to-utf8 tests 1336s # Start of locale-from-utf8 tests 1336s ok 10 /conversion/locale-from-utf8/embedded-nul 1336s # Start of embedded-nul tests 1336s # Start of subprocess tests 1336s # End of subprocess tests 1336s # End of embedded-nul tests 1336s # End of locale-from-utf8 tests 1336s # Start of filename-to-utf8 tests 1336s ok 11 /conversion/filename-to-utf8/embedded-nul 1336s # Start of embedded-nul tests 1336s # Start of subprocess tests 1336s # End of subprocess tests 1336s # End of embedded-nul tests 1336s # End of filename-to-utf8 tests 1336s # Start of filename-from-utf8 tests 1336s ok - glib/convert.test 1336s ok 12 /conversion/filename-from-utf8/embedded-nul 1336s # Start of embedded-nul tests 1336s # Start of subprocess tests 1336s # End of subprocess tests 1336s # End of embedded-nul tests 1336s # End of filename-from-utf8 tests 1336s # Start of filename-from-uri tests 1336s ok 13 /conversion/filename-from-uri/query-is-ignored 1336s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1336s # End of filename-from-uri tests 1336s # End of conversion tests 1336s # Running test: glib/properties-introspection.test 1336s ok - glib/properties-introspection.test 1336s # Running test: glib/portal-support-flatpak-network-only.test 1336s ok - glib/portal-support-flatpak-network-only.test 1336s # Running test: glib/gdbus-addresses.test 1336s ok - glib/gdbus-addresses.test 1336s # Running test: glib/asyncqueue.test 1336s TAP version 14 1336s # random seed: R02Sf271f476baccd7342627ba565ef5392c 1336s 1..2 1336s # Start of properties tests 1336s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1336s ok 1 /properties/introspection 1336s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1336s ok 2 /properties/collision 1336s # End of properties tests 1336s TAP version 14 1336s # random seed: R02S791d0acaa2f454bea133e06117f7fb5d 1336s 1..1 1336s # Start of portal-support tests 1336s # Start of flatpak tests 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/runtime 1336s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_GDWT52/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1336s ok 1 /portal-support/flatpak/network 1336s # End of flatpak tests 1336s # End of portal-support tests 1336s TAP version 14 1336s # random seed: R02Sc06fbdbaa0568d25a78dc2ee4e5849cf 1336s 1..9 1336s # Start of gdbus tests 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/empty-address/.dirs/runtime 1336s ok 1 /gdbus/empty-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/unsupported-address/.dirs/runtime 1336s ok 2 /gdbus/unsupported-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/address-parsing/.dirs/runtime 1336s ok 3 /gdbus/address-parsing 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/unix-address/.dirs/runtime 1336s ok 4 /gdbus/unix-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/nonce-tcp-address/.dirs/runtime 1336s ok 5 /gdbus/nonce-tcp-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/tcp-address/.dirs/runtime 1336s ok 6 /gdbus/tcp-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/autolaunch-address/.dirs/runtime 1336s ok 7 /gdbus/autolaunch-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/mixed-address/.dirs/runtime 1336s ok 8 /gdbus/mixed-address 1336s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/home 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/cache 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/system-config2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/config 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/system-data2 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/data 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/state 1336s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_I0OT52/gdbus/escape-address/.dirs/runtime 1336s ok 9 /gdbus/escape-address 1336s # End of gdbus tests 1336s TAP version 14 1336s # random seed: R02S1272fe58bbb3e798b37005e0e2aa7580 1336s 1..7 1336s # Start of asyncqueue tests 1336s ok 1 /asyncqueue/basics 1336s ok 2 /asyncqueue/sort 1336s ok 3 /asyncqueue/destroy 1336s ok 4 /asyncqueue/threads 1336s ok 5 /asyncqueue/timed 1336s ok 6 /asyncqueue/remove 1336s ok 7 /asyncqueue/push_front 1336s # End of asyncqueue tests 1336s ok - glib/asyncqueue.test 1336s # Running test: glib/atomic-c-11.test 1336s TAP version 14 1336s # random seed: R02Sc510b9a04bac6adf5954cba113266809 1336s 1..2 1336s # Start of atomic tests 1336s ok 1 /atomic/types 1337s ok 2 /atomic/threaded 1337s # End of atomic tests 1337s ok - glib/atomic-c-11.test 1337s TAP version 14 1337s # random seed: R02Sb471afc9c4a659c6c92355fad9c290be 1337s 1..29 1337s # Start of type tests 1337s ok 1 /type/fundamentals 1337s ok 2 /type/qdata 1337s ok 3 /type/query 1337s ok 4 /type/class-private 1337s # End of type tests 1337s # Start of object tests 1337s ok 5 /object/clear 1337s ok 6 /object/clear-function 1337s ok 7 /object/set 1337s ok 8 /object/set-function 1337s ok 9 /object/value 1337s ok 10 /object/initially-unowned 1337s ok 11 /object/weak-pointer 1337s ok 12 /object/weak-ref 1337s ok 13 /object/toggle-ref 1337s ok 14 /object/qdata 1337s ok 15 /object/qdata2 1337s # Start of set tests 1337s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 1337s ok 16 /object/set/derived-type 1337s # End of set tests 1337s # Start of weak-pointer tests 1337s ok 17 /object/weak-pointer/clear 1337s ok 18 /object/weak-pointer/clear-function 1337s ok 19 /object/weak-pointer/set 1337s ok 20 /object/weak-pointer/set-function 1337s # End of weak-pointer tests 1337s # Start of weak-ref tests 1337s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1337s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1337s ok 21 /object/weak-ref/on-dispose 1337s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1337s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1337s ok 22 /object/weak-ref/on-run-dispose 1337s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1337s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1337s ok 23 /object/weak-ref/on-toggle-notify 1337s ok 24 /object/weak-ref/in-toggle-notify 1337s ok 25 /object/weak-ref/many 1337s # Start of concurrent tests 1337s # Running test: glib/reference.test 1337s ok 26 /object/weak-ref/concurrent/0 1337s ok 27 /object/weak-ref/concurrent/1 1337s # End of concurrent tests 1337s # End of weak-ref tests 1337s # Start of toggle-ref tests 1337s ok 28 /object/toggle-ref/ref-on-dispose 1337s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1337s # End of toggle-ref tests 1337s # End of object tests 1337s ok - glib/reference.test 1337s # Running test: glib/gi-compile-repository.py.test 1337s TAP version 13 1337s ok 1 __main__.TestGICompileRepository.test_open_failure 1337s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1337s # gi-compile-repository: /usr/bin/gi-compile-repository 1337s # tmpdir: /tmp/tmpb4jyz_nt 1337s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpb4jyz_nt/invalid.typelib'] 1337s # Return code: 1 1337s # Output: 1337s # 1337s # Error: 1337s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.girâ€: No such file or directory 1337s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1337s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1337s # gi-compile-repository: /usr/bin/gi-compile-repository 1337s # tmpdir: /tmp/tmp8eeslnvg 1337s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp8eeslnvg/GLib-2.typelib'] 1337s # Return code: 0 1337s # Output: 1337s # 1337s # Error: 1337s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1337s # gi-compile-repository: /usr/bin/gi-compile-repository 1337s # tmpdir: /tmp/tmpgei4uavl 1337s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1337s # Return code: 1 1337s # Output: 1337s # 1337s # Error: 1337s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1337s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1337s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1337s # gi-compile-repository: /usr/bin/gi-compile-repository 1337s # tmpdir: /tmp/tmpf_ijuzcu 1337s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpf_ijuzcu/GObject-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1337s # Return code: 0 1337s # Output: 1337s # 1337s # Error: 1337s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1337s # gi-compile-repository: /usr/bin/gi-compile-repository 1337s # tmpdir: /tmp/tmpz5ideim3 1337s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1337s # Return code: 1 1337s # Output: 1337s # 1337s # Error: 1337s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1338s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1338s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1338s # gi-compile-repository: /usr/bin/gi-compile-repository 1338s # tmpdir: /tmp/tmpj871ifk0 1338s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpj871ifk0/Gio-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1338s # Return code: 0 1338s # Output: 1338s # 1338s # Error: 1338s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1338s # gi-compile-repository: /usr/bin/gi-compile-repository 1338s # tmpdir: /tmp/tmpmslomh7q 1338s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1338s # Return code: 1 1338s # Output: 1338s # 1338s # Error: 1338s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1338s 1..7 1338s ok - glib/gi-compile-repository.py.test 1338s # Running test: glib/mapping.test 1338s TAP version 14 1338s # random seed: R02S18878bbbf1cad6e3f567a7923a693770 1338s 1..3 1338s # Start of mapping tests 1338s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_WO1852/mapping/flags/.dirs/home 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_WO1852/mapping/flags/.dirs/cache 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_WO1852/mapping/flags/.dirs/system-config1:/tmp/test_mapping_WO1852/mapping/flags/.dirs/system-config2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_WO1852/mapping/flags/.dirs/config 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_WO1852/mapping/flags/.dirs/system-data1:/tmp/test_mapping_WO1852/mapping/flags/.dirs/system-data2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_WO1852/mapping/flags/.dirs/data 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_WO1852/mapping/flags/.dirs/state 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_WO1852/mapping/flags/.dirs/runtime 1338s # test_mapping: ok 1338s ok 1 /mapping/flags 1338s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_WO1852/mapping/private/.dirs/home 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_WO1852/mapping/private/.dirs/cache 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_WO1852/mapping/private/.dirs/system-config1:/tmp/test_mapping_WO1852/mapping/private/.dirs/system-config2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_WO1852/mapping/private/.dirs/config 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_WO1852/mapping/private/.dirs/system-data1:/tmp/test_mapping_WO1852/mapping/private/.dirs/system-data2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_WO1852/mapping/private/.dirs/data 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_WO1852/mapping/private/.dirs/state 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_WO1852/mapping/private/.dirs/runtime 1338s ok 2 /mapping/private 1338s ok - glib/mapping.test 1338s # Running test: glib/markup.test 1338s ok - glib/markup.test 1338s # Running test: glib/timer.test 1338s ok - glib/timer.test 1338s # Running test: glib/tree.test 1338s ok - glib/tree.test 1338s # Running test: glib/environment.test 1338s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/home 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/cache 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_WO1852/mapping/private-child/.dirs/system-config2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/config 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_WO1852/mapping/private-child/.dirs/system-data2 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/data 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/state 1338s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_WO1852/mapping/private-child/.dirs/runtime 1338s # test_child_private: child spawned 1338s # Subtest: /usr/libexec/installed-tests/glib/mapping 1338s # random seed: R02Saa4307410fb0b9c45bdef5dc88eadcc9 1338s # test_child_private: received first child signal 1338s # test_child_private: received parent signal 1338s # Child exited with status 0 1338s # test_child_private: received second child signal 1338s ok 3 /mapping/private-child 1338s # End of mapping tests 1338s TAP version 14 1338s # random seed: R02S16a159a0b3192faafe5bd419b795a226 1338s 1..1 1338s # Start of markup tests 1338s ok 1 /markup/stack 1338s # End of markup tests 1338s TAP version 14 1338s # random seed: R02S0cc6479bc9f64c4b1a4337effd6b7295 1338s 1..10 1338s # Start of timer tests 1338s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1338s ok 2 /timer/stop 1338s ok 3 /timer/continue 1338s ok 4 /timer/reset 1338s ok 5 /timer/is_active 1338s # End of timer tests 1338s # Start of timeval tests 1338s ok 6 /timeval/add 1338s ok 7 /timeval/from-iso8601 1338s ok 8 /timeval/to-iso8601 1338s # Start of to-iso8601 tests 1338s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1338s # End of to-iso8601 tests 1338s # End of timeval tests 1338s # Start of usleep tests 1338s ok 10 /usleep/with-zero-wait 1338s # End of usleep tests 1338s TAP version 14 1338s # random seed: R02Se0b115ef1bfd2daca9ec4e6c22964735 1338s 1..7 1338s # Start of tree tests 1338s ok 1 /tree/search 1338s ok 2 /tree/remove 1338s ok 3 /tree/destroy 1338s ok 4 /tree/traverse 1338s ok 5 /tree/insert 1338s ok 6 /tree/bounds 1338s ok 7 /tree/remove-all 1338s # End of tree tests 1338s TAP version 14 1338s # random seed: R02Sa2fbb3c33608bed21dd5ca817e8fc621 1338s 1..6 1338s # Start of environ tests 1338s # /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. 1338s ok 1 /environ/listenv 1338s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1338s ok 2 /environ/getenv 1338s ok 3 /environ/setenv 1338s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1338s ok 4 /environ/array 1338s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1338s ok 5 /environ/null 1338s # /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. 1338s ok 6 /environ/case 1338s # End of environ tests 1338s ok - glib/environment.test 1338s # SUMMARY: total=323; passed=322; skipped=1; failed=0; user=291.8s; system=90.5s; maxrss=147712 1338s autopkgtest [01:01:01]: test installed-tests: -----------------------] 1343s autopkgtest [01:01:06]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1343s installed-tests PASS 1346s autopkgtest [01:01:09]: test closure-refcount: preparing testbed 1348s Reading package lists... 1349s Building dependency tree... 1349s Reading state information... 1349s Starting pkgProblemResolver with broken count: 0 1349s Starting 2 pkgProblemResolver with broken count: 0 1349s Done 1350s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1357s autopkgtest [01:01:20]: test closure-refcount: [----------------------- 1359s Running test: glib/closure-refcount.test 1359s TAP version 14 1359s # random seed: R02S67f68cc8b796ad998c80f076806f5adf 1359s 1..1 1359s # Start of closure tests 1359s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1359s # End of closure tests 1359s PASS: glib/closure-refcount.test 1359s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2432 1360s autopkgtest [01:01:23]: test closure-refcount: -----------------------] 1363s autopkgtest [01:01:26]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1363s closure-refcount PASS 1367s autopkgtest [01:01:30]: test debugcontroller: preparing testbed 1369s Reading package lists... 1369s Building dependency tree... 1369s Reading state information... 1370s Starting pkgProblemResolver with broken count: 0 1370s Starting 2 pkgProblemResolver with broken count: 0 1370s Done 1371s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1378s autopkgtest [01:01:41]: test debugcontroller: [----------------------- 1380s Running test: glib/debugcontroller.test 1380s TAP version 14 1380s # random seed: R02S719bce89a4e2db0ad43fbfdbb545cfd9 1380s 1..3 1380s # Start of debug-controller tests 1380s # Start of dbus tests 1380s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1380s # GLib-GIO-DEBUG: Debug output enabled 1380s # GLib-GIO-DEBUG: Debug output disabled 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s ok 1 /debug-controller/dbus/basic 1380s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s ok 2 /debug-controller/dbus/duplicate 1380s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1380s # GLib-GIO-DEBUG: Debug output enabled 1380s # GLib-GIO-DEBUG: Debug output disabled 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1380s ok 3 /debug-controller/dbus/properties 1380s # End of dbus tests 1380s # End of debug-controller tests 1380s PASS: glib/debugcontroller.test 1380s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4480 1380s autopkgtest [01:01:43]: test debugcontroller: -----------------------] 1384s autopkgtest [01:01:47]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1384s debugcontroller PASS 1388s autopkgtest [01:01:51]: test gdbus-server-auth: preparing testbed 1389s Reading package lists... 1390s Building dependency tree... 1390s Reading state information... 1390s Starting pkgProblemResolver with broken count: 0 1390s Starting 2 pkgProblemResolver with broken count: 0 1390s Done 1391s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1398s autopkgtest [01:02:01]: test gdbus-server-auth: [----------------------- 1400s Running test: glib/gdbus-server-auth.test 1400s TAP version 14 1400s # random seed: R02S702138f77844738ad1949cf33f886125 1400s 1..9 1400s # Start of gdbus tests 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/.dirs/runtime 1400s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-EGD452 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1400s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-EGD452/dbus-NKvGFUo8 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1400s ok 1 /gdbus/server-auth 1400s # Start of server-auth tests 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/abstract/.dirs/runtime 1400s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-4XX352 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1400s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-4XX352/dbus-5659oq1I 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1400s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1400s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1400s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1400s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1400s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1400s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1400s ok 2 /gdbus/server-auth/abstract 1400s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/home 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/cache 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/system-config2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/config 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/system-data2 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/data 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/state 1400s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/tcp/.dirs/runtime 1400s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1401s # Connectable address: tcp:host=127.0.0.1,port=36223 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1401s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1401s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1401s ok 3 /gdbus/server-auth/tcp 1401s # slow test /gdbus/server-auth/tcp executed in 0.87 secs 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/.dirs/runtime 1401s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-F1UA62 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1401s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-F1UA62/dbus-3vGcc4bw 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1401s ok 4 /gdbus/server-auth/anonymous 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/.dirs/runtime 1401s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-XLGA62 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1401s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-XLGA62/dbus-FxoYjGyd 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1401s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1401s ok 5 /gdbus/server-auth/external 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/.dirs/runtime 1401s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-DP8952 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1401s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-DP8952/dbus-euQVev0o 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1401s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1401s ok 6 /gdbus/server-auth/sha1 1401s # Start of anonymous tests 1401s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/home 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/cache 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/config 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/data 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/state 1401s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1401s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1401s # Connectable address: tcp:host=127.0.0.1,port=33887 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1401s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1401s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1401s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1401s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1401s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1402s ok 7 /gdbus/server-auth/anonymous/tcp 1402s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 1402s # End of anonymous tests 1402s # Start of external tests 1402s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/home 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/cache 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/config 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/data 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/state 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/external/require-same-user/.dirs/runtime 1402s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-YLM852 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1402s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MLD452/gdbus-server-auth-YLM852/dbus-VPmBfwB8 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15388 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1402s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15388,uid=1000,gid=1000 1402s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15388 1402s ok 8 /gdbus/server-auth/external/require-same-user 1402s # End of external tests 1402s # Start of sha1 tests 1402s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/home 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/cache 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/config 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/data 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/state 1402s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MLD452/gdbus/server-auth/sha1/tcp/.dirs/runtime 1402s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1402s # Connectable address: tcp:host=127.0.0.1,port=42939 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1402s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1402s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1402s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1402s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1402s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1403s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1403s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1403s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1403s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1403s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1403s ok 9 /gdbus/server-auth/sha1/tcp 1403s # slow test /gdbus/server-auth/sha1/tcp executed in 0.85 secs 1403s # End of sha1 tests 1403s # End of server-auth tests 1403s # End of gdbus tests 1403s PASS: glib/gdbus-server-auth.test 1403s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=5888 1403s autopkgtest [01:02:06]: test gdbus-server-auth: -----------------------] 1407s autopkgtest [01:02:10]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1407s gdbus-server-auth PASS 1411s autopkgtest [01:02:14]: test gdbus-threading: preparing testbed 1413s Reading package lists... 1413s Building dependency tree... 1413s Reading state information... 1413s Starting pkgProblemResolver with broken count: 0 1413s Starting 2 pkgProblemResolver with broken count: 0 1414s Done 1414s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1422s autopkgtest [01:02:25]: test gdbus-threading: [----------------------- 1424s Running test: glib/gdbus-threading.test 1424s TAP version 14 1424s # random seed: R02Sfad7e6a2793c7d4f37855523f95692a2 1424s 1..3 1424s # Start of gdbus tests 1424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/home 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/cache 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/system-config2 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/config 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/system-data2 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/data 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/state 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_34F052/gdbus/delivery-in-thread/.dirs/runtime 1424s ok 1 /gdbus/delivery-in-thread 1424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/home 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/cache 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/system-config2 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/config 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/system-data2 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/data 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/state 1424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_34F052/gdbus/method-calls-in-thread/.dirs/runtime 1425s ok 2 /gdbus/method-calls-in-thread 1425s # slow test /gdbus/method-calls-in-thread executed in 0.83 secs 1425s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/home 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/cache 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/system-config2 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/config 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/system-data2 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/data 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/state 1425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_34F052/gdbus/threaded-singleton/.dirs/runtime 1425s # GLib-GIO-DEBUG: refcount of 0xee7015a8 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 1426s ok 3 /gdbus/threaded-singleton 1426s # slow test /gdbus/threaded-singleton executed in 1.16 secs 1426s # End of gdbus tests 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s PASS: glib/gdbus-threading.test 1426s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.4s; maxrss=4096 1426s autopkgtest [01:02:29]: test gdbus-threading: -----------------------] 1430s gdbus-threading PASS 1430s autopkgtest [01:02:33]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1434s autopkgtest [01:02:37]: test gmenumodel: preparing testbed 1435s Reading package lists... 1436s Building dependency tree... 1436s Reading state information... 1436s Starting pkgProblemResolver with broken count: 0 1436s Starting 2 pkgProblemResolver with broken count: 0 1436s Done 1437s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1445s autopkgtest [01:02:48]: test gmenumodel: [----------------------- 1447s Running test: glib/gmenumodel.test 1447s TAP version 14 1447s # random seed: R02Sf8fc412532bf3e2c33627b5767162864 1447s 1..15 1447s # Start of gmenu tests 1448s ok 1 /gmenu/equality 1448s # slow test /gmenu/equality executed in 0.83 secs 1449s ok 2 /gmenu/random 1449s # slow test /gmenu/random executed in 0.96 secs 1449s ok 3 /gmenu/attributes 1449s ok 4 /gmenu/links 1449s ok 5 /gmenu/mutable 1449s ok 6 /gmenu/convenience 1449s ok 7 /gmenu/menuitem 1449s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1449s ok 8 /gmenu/input-validation 1449s # Start of dbus tests 1450s ok 9 /gmenu/dbus/roundtrip 1450s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1450s ok 10 /gmenu/dbus/subscriptions 1451s ok 11 /gmenu/dbus/threaded 1451s # slow test /gmenu/dbus/threaded executed in 1.19 secs 1451s # Start of peer tests 1452s Executing: glib/gmenumodel.test 1452s ok 12 /gmenu/dbus/peer/roundtrip 1452s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1453s ok 13 /gmenu/dbus/peer/subscriptions 1453s # End of peer tests 1453s # Start of export tests 1453s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1453s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1453s ok 14 /gmenu/dbus/export/error-handling 1453s # End of export tests 1453s # End of dbus tests 1453s # Start of attributes tests 1453s ok 15 /gmenu/attributes/iterate 1453s # End of attributes tests 1453s # End of gmenu tests 1453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1453s PASS: glib/gmenumodel.test 1453s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=4.7s; system=1.2s; maxrss=17792 1453s autopkgtest [01:02:56]: test gmenumodel: -----------------------] 1457s autopkgtest [01:03:00]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1457s gmenumodel PASS 1461s autopkgtest [01:03:04]: test mainloop: preparing testbed 1462s Reading package lists... 1463s Building dependency tree... 1463s Reading state information... 1463s Starting pkgProblemResolver with broken count: 0 1463s Starting 2 pkgProblemResolver with broken count: 0 1463s Done 1464s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1471s autopkgtest [01:03:14]: test mainloop: [----------------------- 1473s Running test: glib/mainloop.test 1473s TAP version 14 1473s # random seed: R02S4e41586e500705717a1e2caf000c9271 1473s 1..45 1473s # Start of maincontext tests 1473s ok 1 /maincontext/basic 1473s # Add same-priority sources: 30 1473s # Find each source: 3 1473s # Remove in random order: 43 1473s ok 2 /maincontext/nsources_same_priority 1474s # Add different-priority sources: 34 1474s # Find each source: 3 1474s # Remove in random order: 44 1474s ok 3 /maincontext/nsources_different_priority 1474s # Add sources from threads: 97 1474s # Remove sources from threads: 80 1474s ok 4 /maincontext/nsources_threadpool 1474s ok 5 /maincontext/source_finalization 1474s # /maincontext/idle-once summary: Test g_idle_add_once() works 1474s ok 6 /maincontext/idle-once 1474s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1474s ok 7 /maincontext/timeout-once 1474s # Start of source_finalization_from_source tests 1474s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 8 /maincontext/source_finalization_from_source/0 1474s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 9 /maincontext/source_finalization_from_source/1 1474s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 10 /maincontext/source_finalization_from_source/2 1474s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 11 /maincontext/source_finalization_from_source/3 1474s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 12 /maincontext/source_finalization_from_source/4 1474s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 13 /maincontext/source_finalization_from_source/5 1474s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 14 /maincontext/source_finalization_from_source/6 1474s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 15 /maincontext/source_finalization_from_source/7 1474s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 16 /maincontext/source_finalization_from_source/8 1474s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1474s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1474s ok 17 /maincontext/source_finalization_from_source/9 1474s # End of source_finalization_from_source tests 1474s # Start of source_finalization_from_dispatch tests 1474s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1474s ok 18 /maincontext/source_finalization_from_dispatch/0 1474s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1474s ok 19 /maincontext/source_finalization_from_dispatch/1 1474s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1474s ok 20 /maincontext/source_finalization_from_dispatch/2 1474s # End of source_finalization_from_dispatch tests 1474s # End of maincontext tests 1474s # Start of mainloop tests 1474s ok 21 /mainloop/basic 1474s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1474s ok 23 /mainloop/priorities 1474s ok 24 /mainloop/invoke 1474s # slow test /mainloop/invoke executed in 0.50 secs 1476s ok 25 /mainloop/child_sources 1476s # slow test /mainloop/child_sources executed in 1.20 secs 1478s ok 26 /mainloop/recursive_child_sources 1478s # slow test /mainloop/recursive_child_sources executed in 2.20 secs 1478s ok 27 /mainloop/recursive_loop_child_sources 1478s ok 28 /mainloop/swapping_child_sources 1478s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1478s ok 29 /mainloop/blocked_child_sources 1478s Executing: glib/mainloop.test 1479s ok 30 /mainloop/source_time 1479s # slow test /mainloop/source_time executed in 1.00 secs 1479s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1479s ok 31 /mainloop/overflow 1479s ok 32 /mainloop/ready-time 1479s # slow test /mainloop/ready-time executed in 0.50 secs 1479s ok 33 /mainloop/wakeup 1479s ok 34 /mainloop/remove-invalid 1479s ok 35 /mainloop/unref-while-pending 1480s ok 36 /mainloop/unix-fd 1480s # slow test /mainloop/unix-fd executed in 0.94 secs 1480s ok 37 /mainloop/unix-fd-source 1480s ok 38 /mainloop/source-unix-fd-api 1481s ok 39 /mainloop/wait 1481s ok 40 /mainloop/unix-file-poll 1481s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1481s ok 41 /mainloop/unix-fd-priority 1481s ok 42 /mainloop/nfds 1481s ok 43 /mainloop/steal-fd 1481s # Start of ownerless-polling tests 1481s ok 44 /mainloop/ownerless-polling/attach-first 1481s ok 45 /mainloop/ownerless-polling/pop-first 1481s # End of ownerless-polling tests 1481s # End of mainloop tests 1481s PASS: glib/mainloop.test 1481s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=1.3s; maxrss=9408 1481s autopkgtest [01:03:24]: test mainloop: -----------------------] 1485s autopkgtest [01:03:28]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1485s mainloop PASS 1489s autopkgtest [01:03:32]: test memory-monitor-dbus: preparing testbed 1491s Reading package lists... 1491s Building dependency tree... 1491s Reading state information... 1491s Starting pkgProblemResolver with broken count: 0 1491s Starting 2 pkgProblemResolver with broken count: 0 1491s Done 1492s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1500s autopkgtest [01:03:43]: test memory-monitor-dbus: [----------------------- 1502s Running test: glib/memory-monitor-dbus.test 1502s TAP version 13 1502s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1502s # Received memory warning signal, level 1502s # Received memory warning signal, level 1502s # Received memory warning signal, level 1502s 1..1 1502s PASS: glib/memory-monitor-dbus.test 1502s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.1s; maxrss=20848 1503s autopkgtest [01:03:46]: test memory-monitor-dbus: -----------------------] 1506s autopkgtest [01:03:49]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1506s memory-monitor-dbus PASS 1510s autopkgtest [01:03:53]: test socket: preparing testbed 1512s Reading package lists... 1512s Building dependency tree... 1512s Reading state information... 1513s Starting pkgProblemResolver with broken count: 0 1513s Starting 2 pkgProblemResolver with broken count: 0 1513s Done 1514s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1522s autopkgtest [01:04:05]: test socket: [----------------------- 1524s Running test: glib/socket.test 1524s TAP version 14 1524s # random seed: R02S8a5ae8dd624e8281754bdbe533491b70 1524s 1..28 1524s # Start of socket tests 1525s ok 1 /socket/ipv4_sync 1525s # slow test /socket/ipv4_sync executed in 1.00 secs 1526s ok 2 /socket/ipv4_async 1526s # slow test /socket/ipv4_async executed in 1.00 secs 1526s ok 3 /socket/ipv6_sync 1526s ok 4 /socket/ipv6_async 1526s ok 5 /socket/ipv6_v4mapped 1527s ok 6 /socket/close_graceful 1527s # slow test /socket/close_graceful executed in 1.00 secs 1527s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1527s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1527s ok 8 /socket/fd_reuse 1527s ok 9 /socket/address 1527s ok 10 /socket/unix-from-fd 1527s ok 11 /socket/unix-connection 1527s ok 12 /socket/unix-connection-ancillary-data 1527s ok 13 /socket/source-postmortem 1527s ok 14 /socket/read_write 1527s ok 15 /socket/read_writev 1527s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1527s ok 16 /socket/receive_bytes 1527s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1527s ok 17 /socket/receive_bytes_from 1527s # Start of ipv4_sync tests 1527s ok 18 /socket/ipv4_sync/datagram 1527s # Start of datagram tests 1528s ok 19 /socket/ipv4_sync/datagram/timeouts 1528s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1528s # End of datagram tests 1528s # End of ipv4_sync tests 1528s # Start of ipv6_sync tests 1528s ok 20 /socket/ipv6_sync/datagram 1528s # Start of datagram tests 1529s ok 21 /socket/ipv6_sync/datagram/timeouts 1529s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1529s # End of datagram tests 1529s # End of ipv6_sync tests 1529s # Start of reuse tests 1529s ok 22 /socket/reuse/tcp 1529s ok 23 /socket/reuse/udp 1529s # End of reuse tests 1529s # Start of get_available tests 1529s ok 24 /socket/get_available/datagram 1529s ok 25 /socket/get_available/stream 1529s # End of get_available tests 1529s # Start of credentials tests 1529s # Supported on this OS: GCredentials:linux-ucred:pid=0 1529s ok 26 /socket/credentials/tcp_client 1529s # Supported on this OS: GCredentials:linux-ucred:pid=0 1529s ok 27 /socket/credentials/tcp_server 1529s # Supported on this OS: GCredentials:linux-ucred:pid=17444,uid=1000,gid=1000 1529s ok 28 /socket/credentials/unix_socketpair 1529s # End of credentials tests 1529s # End of socket tests 1529s PASS: glib/socket.test 1529s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3968 1529s autopkgtest [01:04:12]: test socket: -----------------------] 1533s socket PASS 1533s autopkgtest [01:04:16]: test socket: - - - - - - - - - - results - - - - - - - - - - 1536s autopkgtest [01:04:19]: test testfilemonitor: preparing testbed 1538s Reading package lists... 1539s Building dependency tree... 1539s Reading state information... 1539s Starting pkgProblemResolver with broken count: 0 1539s Starting 2 pkgProblemResolver with broken count: 0 1539s Done 1540s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1547s autopkgtest [01:04:30]: test testfilemonitor: [----------------------- 1549s Running test: glib/testfilemonitor.test 1549s TAP version 14 1549s # random seed: R02Sb2ecfa27af672aa14339b027a04154c6 1549s 1..8 1549s # Start of monitor tests 1549s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1549s # Using temporary directory: /tmp/gio-test-testfilemonitor_K7BC62 1549s # Using GFileMonitor GInotifyFileMonitor 1551s ok 1 /monitor/atomic-replace 1551s # slow test /monitor/atomic-replace executed in 2.00 secs 1551s # Using temporary directory: /tmp/gio-test-testfilemonitor_94DC62 1551s # Using GFileMonitor GInotifyFileMonitor 1554s ok 2 /monitor/file-changes 1554s # slow test /monitor/file-changes executed in 2.50 secs 1554s # Using temporary directory: /tmp/gio-test-testfilemonitor_8UYY52 1554s # Using GFileMonitor GInotifyFileMonitor 1554s Executing: glib/testfilemonitor.test 1557s ok 3 /monitor/dir-monitor 1557s # slow test /monitor/dir-monitor executed in 3.50 secs 1557s # Using temporary directory: /tmp/gio-test-testfilemonitor_36TA62 1557s # Using GFileMonitor GInotifyFileMonitor 1559s Executing: glib/testfilemonitor.test 1564s Executing: glib/testfilemonitor.test 1569s Executing: glib/testfilemonitor.test 1574s Executing: glib/testfilemonitor.test 1579s Executing: glib/testfilemonitor.test 1583s ok 4 /monitor/dir-not-existent 1583s # slow test /monitor/dir-not-existent executed in 25.02 secs 1583s # Using temporary directory: /tmp/gio-test-testfilemonitor_DYAA62 1583s # Using GFileMonitor 0 GInotifyFileMonitor 1583s # Using GFileMonitor 1 GInotifyFileMonitor 1584s Executing: glib/testfilemonitor.test 1584s ok 5 /monitor/cross-dir-moves 1584s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1584s # Using temporary directory: /tmp/gio-test-testfilemonitor_41GB62 1584s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 1584s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1584s ok 6 /monitor/finalize-in-callback 1584s # Using temporary directory: /tmp/gio-test-testfilemonitor_EXKB62 1584s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1584s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1584s ok 7 /monitor/root 1584s # Start of file tests 1584s # Using temporary directory: /tmp/gio-test-testfilemonitor_48IB62 1584s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1584s # Running with hard link tests 1584s # Using GFileMonitor GInotifyFileMonitor 1588s # Event 0 at expected index 7 skipped because it is marked as optional 1588s # Event 2 at expected index 11 skipped because it is marked as optional 1588s ok 8 /monitor/file/hard-links 1588s # slow test /monitor/file/hard-links executed in 3.51 secs 1588s # End of file tests 1588s # End of monitor tests 1588s PASS: glib/testfilemonitor.test 1588s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4096 1588s autopkgtest [01:05:11]: test testfilemonitor: -----------------------] 1592s testfilemonitor PASS 1592s autopkgtest [01:05:15]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1596s autopkgtest [01:05:19]: test thread-pool-slow: preparing testbed 1597s Reading package lists... 1598s Building dependency tree... 1598s Reading state information... 1598s Starting pkgProblemResolver with broken count: 0 1598s Starting 2 pkgProblemResolver with broken count: 0 1598s Done 1599s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1606s autopkgtest [01:05:29]: test thread-pool-slow: [----------------------- 1608s Running test: glib/thread-pool-slow.test 1608s TAP version 14 1608s # random seed: R02S13b8ff8d9cda0d5d6f1340b7a2d36f67 1608s 1..7 1608s # Start of threadpool tests 1608s ok 1 /threadpool/functions 1609s ok 2 /threadpool/stop-unused 1609s # slow test /threadpool/stop-unused executed in 0.51 secs 1609s ok 3 /threadpool/pools 1609s # [unsorted] ===> pushed new thread with id:6, number of threads:1, unprocessed:1 1609s # [unsorted] ===> pushed new thread with id:71, number of threads:2, unprocessed:1 1609s # [unsorted] ===> pushed new thread with id:48, number of threads:3, unprocessed:1 1609s # [unsorted] ===> pushed new thread with id:32, number of threads:4, unprocessed:2 1609s # [unsorted] ===> pushed new thread with id:71, number of threads:5, unprocessed:3 1609s # [unsorted] ===> pushed new thread with id:79, number of threads:6, unprocessed:4 1609s # [unsorted] ===> pushed new thread with id:84, number of threads:7, unprocessed:5 1609s # [unsorted] ===> pushed new thread with id:43, number of threads:8, unprocessed:6 1609s # [unsorted] ===> pushed new thread with id:43, number of threads:9, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:6 1609s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:6 1609s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:8 1609s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:7 1609s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:8 1609s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:9 1609s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:10 1609s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:11 1609s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:12 1609s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:13 1609s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:14 1609s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:15 1609s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:16 1609s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:17 1609s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:18 1609s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:19 1609s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:20 1609s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:21 1609s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:22 1609s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:23 1609s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:24 1609s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:25 1609s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:26 1609s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:27 1609s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:28 1609s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:29 1609s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:30 1609s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:31 1609s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:32 1609s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:33 1609s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:34 1609s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:35 1609s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:36 1609s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:37 1609s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:38 1609s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:39 1609s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:40 1609s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:41 1609s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:42 1609s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:43 1609s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:44 1609s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:45 1609s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:46 1609s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:47 1609s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:48 1609s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:49 1609s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:50 1609s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:51 1609s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:52 1609s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:53 1609s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:54 1609s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:55 1609s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:56 1609s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:57 1609s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:58 1609s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:59 1609s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:60 1609s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:61 1609s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:62 1609s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:63 1609s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:64 1609s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:65 1609s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:66 1609s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:67 1609s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:68 1609s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:69 1609s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:70 1609s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:71 1609s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:72 1609s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:73 1609s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:74 1609s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:75 1609s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:76 1609s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:77 1609s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:78 1609s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:79 1609s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:80 1609s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:81 1609s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:82 1609s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:83 1609s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:84 1609s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:85 1609s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:86 1609s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:87 1609s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:88 1609s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:89 1609s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:90 1609s ok 4 /threadpool/no-sort 1609s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:1 1609s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:2 1609s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:3 1609s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:4 1609s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:5 1609s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:6 1609s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:7 1609s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:8 1609s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:9 1609s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:10 1609s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:11 1609s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:12 1609s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:13 1609s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:14 1609s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:15 1609s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:16 1609s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:17 1609s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:18 1609s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:19 1609s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:20 1609s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:21 1609s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:22 1609s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:23 1609s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:24 1609s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:25 1609s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:26 1609s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:27 1609s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:28 1609s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:29 1609s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:30 1609s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:31 1609s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:32 1609s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:33 1609s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:34 1609s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:35 1609s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:36 1609s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:37 1609s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:38 1609s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:39 1609s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:40 1609s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:41 1609s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:42 1609s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:43 1609s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:44 1609s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:45 1609s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:46 1609s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:47 1609s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:48 1609s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:49 1609s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:50 1609s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:51 1609s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:52 1609s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:53 1609s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:54 1609s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:55 1609s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:56 1609s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:57 1609s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:58 1609s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:59 1609s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:60 1609s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:61 1609s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:62 1609s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:63 1609s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:64 1609s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:65 1609s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:66 1609s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:67 1609s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:68 1609s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:69 1609s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:70 1609s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:71 1609s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:72 1609s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:73 1609s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:74 1609s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:75 1609s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:76 1609s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:77 1609s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:78 1609s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:79 1609s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:80 1609s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:81 1609s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:82 1609s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:83 1609s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:84 1609s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:85 1609s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:86 1609s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:87 1609s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:88 1609s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:89 1609s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:90 1609s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:91 1609s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:92 1609s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:93 1609s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:94 1609s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:95 1609s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:96 1609s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:97 1609s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:98 1609s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:99 1609s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:100 1609s # Starting thread pool processing 1609s ok 5 /threadpool/sort 1609s ok 6 /threadpool/stop-unused-multiple 1609s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1609s # Pool idle thread count: 0, unprocessed jobs: 40 1610s # Pool idle thread count: 0, unprocessed jobs: 0 1610s # Pool idle thread count: 0, unprocessed jobs: 0 1610s # Pool idle thread count: 10, unprocessed jobs: 0 1610s # Pool idle thread count: 10, unprocessed jobs: 0 1611s # Pool idle thread count: 10, unprocessed jobs: 0 1611s # Pool idle thread count: 10, unprocessed jobs: 0 1611s # Pool idle thread count: 10, unprocessed jobs: 0 1611s # Pool idle thread count: 10, unprocessed jobs: 0 1612s # Pool idle thread count: 10, unprocessed jobs: 0 1612s # Pool idle thread count: 10, unprocessed jobs: 0 1612s # Pool idle thread count: 10, unprocessed jobs: 0 1612s # Pool idle thread count: 10, unprocessed jobs: 0 1613s # Pool idle thread count: 10, unprocessed jobs: 0 1613s # Pool idle thread count: 10, unprocessed jobs: 0 1613s Executing: glib/thread-pool-slow.test 1613s # Pool idle thread count: 10, unprocessed jobs: 0 1613s # Pool idle thread count: 10, unprocessed jobs: 0 1614s # Pool idle thread count: 10, unprocessed jobs: 0 1614s # Pool idle thread count: 10, unprocessed jobs: 0 1614s # Pool idle thread count: 10, unprocessed jobs: 0 1614s # Pool idle thread count: 10, unprocessed jobs: 0 1615s # Pool idle thread count: 10, unprocessed jobs: 0 1615s # Pool idle thread count: 10, unprocessed jobs: 0 1615s # Pool idle thread count: 10, unprocessed jobs: 0 1615s # Pool idle thread count: 10, unprocessed jobs: 0 1616s # Pool idle thread count: 10, unprocessed jobs: 0 1616s # Pool idle thread count: 10, unprocessed jobs: 0 1616s # Pool idle thread count: 10, unprocessed jobs: 0 1616s # Pool idle thread count: 10, unprocessed jobs: 0 1617s # Pool idle thread count: 10, unprocessed jobs: 0 1617s # Pool idle thread count: 10, unprocessed jobs: 0 1617s # Pool idle thread count: 10, unprocessed jobs: 0 1617s # Pool idle thread count: 10, unprocessed jobs: 0 1618s # Pool idle thread count: 10, unprocessed jobs: 0 1618s # Pool idle thread count: 10, unprocessed jobs: 0 1618s Executing: glib/thread-pool-slow.test 1618s # Pool idle thread count: 10, unprocessed jobs: 2 1618s # Pool idle thread count: 9, unprocessed jobs: 1 1618s # Pool idle thread count: 8, unprocessed jobs: 0 1618s # Pool idle thread count: 8, unprocessed jobs: 0 1619s # Pool idle thread count: 10, unprocessed jobs: 0 1619s # Pool idle thread count: 10, unprocessed jobs: 0 1619s # Pool idle thread count: 10, unprocessed jobs: 0 1619s # Pool idle thread count: 10, unprocessed jobs: 0 1620s # Pool idle thread count: 10, unprocessed jobs: 0 1620s # Pool idle thread count: 10, unprocessed jobs: 0 1620s # Pool idle thread count: 2, unprocessed jobs: 0 1620s # Pool idle thread count: 2, unprocessed jobs: 0 1621s # Pool idle thread count: 2, unprocessed jobs: 0 1621s # Pool idle thread count: 2, unprocessed jobs: 0 1621s # Pool idle thread count: 2, unprocessed jobs: 0 1621s # Pool idle thread count: 2, unprocessed jobs: 0 1622s # Pool idle thread count: 2, unprocessed jobs: 0 1622s # Pool idle thread count: 2, unprocessed jobs: 0 1622s # Pool idle thread count: 2, unprocessed jobs: 0 1622s # Pool idle thread count: 2, unprocessed jobs: 0 1623s # Pool idle thread count: 2, unprocessed jobs: 0 1623s # Pool idle thread count: 2, unprocessed jobs: 0 1623s Executing: glib/thread-pool-slow.test 1623s # Pool idle thread count: 2, unprocessed jobs: 0 1623s # Pool idle thread count: 2, unprocessed jobs: 0 1624s # Pool idle thread count: 2, unprocessed jobs: 0 1624s # Pool idle thread count: 2, unprocessed jobs: 0 1624s # Pool idle thread count: 2, unprocessed jobs: 0 1624s # Pool idle thread count: 2, unprocessed jobs: 0 1625s # Pool idle thread count: 2, unprocessed jobs: 0 1625s # Pool idle thread count: 2, unprocessed jobs: 0 1626s # Pool idle thread count: 2, unprocessed jobs: 0 1626s # Pool idle thread count: 2, unprocessed jobs: 0 1626s # Pool idle thread count: 2, unprocessed jobs: 0 1626s # Pool idle thread count: 2, unprocessed jobs: 0 1627s # Pool idle thread count: 2, unprocessed jobs: 0 1627s # Pool idle thread count: 2, unprocessed jobs: 0 1627s # Pool idle thread count: 2, unprocessed jobs: 0 1627s # Pool idle thread count: 2, unprocessed jobs: 0 1628s # Pool idle thread count: 2, unprocessed jobs: 0 1628s # Pool idle thread count: 2, unprocessed jobs: 0 1628s # Pool idle thread count: 2, unprocessed jobs: 0 1628s # Pool idle thread count: 2, unprocessed jobs: 0 1628s Executing: glib/thread-pool-slow.test 1629s # Pool idle thread count: 2, unprocessed jobs: 0 1629s # Pool idle thread count: 2, unprocessed jobs: 0 1629s ok 7 /threadpool/idle-time 1629s # slow test /threadpool/idle-time executed in 19.53 secs 1629s # End of threadpool tests 1629s PASS: glib/thread-pool-slow.test 1629s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=2560 1629s autopkgtest [01:05:52]: test thread-pool-slow: -----------------------] 1633s autopkgtest [01:05:56]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1633s thread-pool-slow PASS 1637s autopkgtest [01:06:00]: test threadtests: preparing testbed 1639s Reading package lists... 1639s Building dependency tree... 1639s Reading state information... 1639s Starting pkgProblemResolver with broken count: 0 1639s Starting 2 pkgProblemResolver with broken count: 0 1639s Done 1640s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1648s autopkgtest [01:06:11]: test threadtests: [----------------------- 1650s Running test: glib/threadtests.test 1650s TAP version 14 1650s # random seed: R02Se0f7204555808ec99474cb7d001f945d 1650s 1..5 1650s # Start of GObject tests 1650s ok 1 /GObject/threaded-object-init 1651s ok 2 /GObject/threaded-weak-ref 1651s # slow test /GObject/threaded-weak-ref executed in 0.88 secs 1651s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1651s # /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 1655s Executing: glib/threadtests.test 1660s Executing: glib/threadtests.test 1665s Executing: glib/threadtests.test 1670s Executing: glib/threadtests.test 1675s Executing: glib/threadtests.test 1680s Executing: glib/threadtests.test 1685s Executing: glib/threadtests.test 1690s Executing: glib/threadtests.test 1695s Executing: glib/threadtests.test 1696s ok 3 /GObject/threaded-toggle-notify 1696s # slow test /GObject/threaded-toggle-notify executed in 45.05 secs 1696s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1696s # Start of threaded-weak-ref tests 1696s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1696s # /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. 1696s ok 5 /GObject/threaded-weak-ref/on-finalization 1696s # End of threaded-weak-ref tests 1696s # End of GObject tests 1696s PASS: glib/threadtests.test 1696s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=178.7s; system=0.6s; maxrss=2560 1696s autopkgtest [01:06:59]: test threadtests: -----------------------] 1700s autopkgtest [01:07:03]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1700s threadtests PASS 1704s autopkgtest [01:07:07]: test timeout: preparing testbed 1706s Reading package lists... 1706s Building dependency tree... 1706s Reading state information... 1707s Starting pkgProblemResolver with broken count: 0 1707s Starting 2 pkgProblemResolver with broken count: 0 1707s Done 1707s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1715s autopkgtest [01:07:18]: test timeout: [----------------------- 1717s Running test: glib/timeout.test 1717s TAP version 14 1717s # random seed: R02Sf17a18274a04375dd2337d59c9f5e6c5 1717s 1..5 1717s # Start of timeout tests 1717s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1719s ok 1 /timeout/seconds 1719s # slow test /timeout/seconds executed in 2.10 secs 1721s ok 2 /timeout/seconds-once 1721s # slow test /timeout/seconds-once executed in 2.10 secs 1721s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1722s Executing: glib/timeout.test 1723s ok 3 /timeout/weeks-overflow 1723s # slow test /timeout/weeks-overflow executed in 2.10 secs 1723s ok 4 /timeout/far-future-ready-time 1727s Executing: glib/timeout.test 1732s Executing: glib/timeout.test 1733s ok 5 /timeout/rounding 1733s # slow test /timeout/rounding executed in 10.15 secs 1733s # End of timeout tests 1733s PASS: glib/timeout.test 1733s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2176 1734s autopkgtest [01:07:37]: test timeout: -----------------------] 1737s timeout PASS 1737s autopkgtest [01:07:40]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1741s autopkgtest [01:07:44]: test timer: preparing testbed 1743s Reading package lists... 1743s Building dependency tree... 1743s Reading state information... 1744s Starting pkgProblemResolver with broken count: 0 1744s Starting 2 pkgProblemResolver with broken count: 0 1744s Done 1745s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1752s autopkgtest [01:07:55]: test timer: [----------------------- 1754s Running test: glib/timer.test 1754s TAP version 14 1754s # random seed: R02S975cc12e96efb3449d1b444a166798b8 1754s 1..10 1754s # Start of timer tests 1754s ok 1 /timer/basic 1754s ok 2 /timer/stop 1754s ok 3 /timer/continue 1754s ok 4 /timer/reset 1754s ok 5 /timer/is_active 1754s # End of timer tests 1754s # Start of timeval tests 1754s ok 6 /timeval/add 1754s ok 7 /timeval/from-iso8601 1754s ok 8 /timeval/to-iso8601 1754s # Start of to-iso8601 tests 1754s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1754s # End of to-iso8601 tests 1754s # End of timeval tests 1754s # Start of usleep tests 1754s ok 10 /usleep/with-zero-wait 1754s # End of usleep tests 1754s PASS: glib/timer.test 1754s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2176 1754s autopkgtest [01:07:57]: test timer: -----------------------] 1758s autopkgtest [01:08:01]: test timer: - - - - - - - - - - results - - - - - - - - - - 1758s timer PASS 1762s autopkgtest [01:08:05]: test 1065022-futureproofing: preparing testbed 1784s autopkgtest [01:08:27]: testbed dpkg architecture: armhf 1786s autopkgtest [01:08:29]: testbed apt version: 3.0.0 1790s autopkgtest [01:08:33]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1792s autopkgtest [01:08:35]: testbed release detected to be: questing 1799s autopkgtest [01:08:42]: updating testbed package index (apt update) 1801s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1801s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [110 kB] 1801s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [110 kB] 1801s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [110 kB] 1802s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.4 kB] 1802s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1934 kB] 1802s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [169 kB] 1802s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [204 kB] 1802s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [1371 kB] 1802s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [12.5 kB] 1802s Get:11 http://ftpmaster.internal/ubuntu questing/main Sources [1390 kB] 1802s Get:12 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 1802s Get:13 http://ftpmaster.internal/ubuntu questing/multiverse Sources [299 kB] 1802s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1358 kB] 1802s Get:15 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.2 MB] 1803s Get:16 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [173 kB] 1806s Fetched 43.7 MB in 5s (8321 kB/s) 1807s Reading package lists... 1813s autopkgtest [01:08:56]: upgrading testbed (apt dist-upgrade and autopurge) 1815s Reading package lists... 1815s Building dependency tree... 1815s Reading state information... 1816s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1816s Starting 2 pkgProblemResolver with broken count: 0 1816s Done 1817s Entering ResolveByKeep 1817s 1817s Calculating upgrade... 1817s The following packages will be upgraded: 1817s base-files distro-info-data dpkg dpkg-dev ed fwupd htop libdpkg-perl 1817s libftdi1-2 libfwupd3 libnpth0t64 libnvme1t64 libpython3.13-minimal 1817s libpython3.13-stdlib libsensors-config libsensors5 liburcu8t64 1817s motd-news-config nano python3.13 python3.13-gdbm python3.13-minimal 1817s ubuntu-pro-client ubuntu-pro-client-l10n usb.ids 1818s 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1818s Need to get 11.0 MB of archives. 1818s After this operation, 3722 kB disk space will be freed. 1818s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf motd-news-config all 13.7ubuntu1 [5260 B] 1818s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf base-files armhf 13.7ubuntu1 [75.4 kB] 1818s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dpkg armhf 1.22.18ubuntu3 [1254 kB] 1818s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13 armhf 3.13.3-2 [739 kB] 1818s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-stdlib armhf 3.13.3-2 [1945 kB] 1818s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-minimal armhf 3.13.3-2 [2017 kB] 1818s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main armhf libpython3.13-minimal armhf 3.13.3-2 [871 kB] 1818s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libnpth0t64 armhf 1.8-3 [7716 B] 1818s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf distro-info-data all 0.64 [6664 B] 1818s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client-l10n armhf 35.1ubuntu0 [19.7 kB] 1818s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf ubuntu-pro-client armhf 35.1ubuntu0 [258 kB] 1818s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf ed armhf 1.21.1-1 [53.0 kB] 1818s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libsensors-config all 1:3.6.2-2 [6756 B] 1818s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libsensors5 armhf 1:3.6.2-2 [26.8 kB] 1818s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf liburcu8t64 armhf 0.15.2-2 [57.3 kB] 1818s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf nano armhf 8.4-1 [278 kB] 1818s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf usb.ids all 2025.04.01-1 [223 kB] 1818s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-dev all 1.22.18ubuntu3 [1089 kB] 1818s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libdpkg-perl all 1.22.18ubuntu3 [281 kB] 1818s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf fwupd armhf 2.0.8-3 [1414 kB] 1818s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libfwupd3 armhf 2.0.8-3 [126 kB] 1818s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf htop armhf 3.4.1-4 [147 kB] 1818s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libftdi1-2 armhf 1.5-10 [27.8 kB] 1818s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libnvme1t64 armhf 1.13-2 [74.3 kB] 1818s Get:25 http://ftpmaster.internal/ubuntu questing-proposed/main armhf python3.13-gdbm armhf 3.13.3-2 [30.4 kB] 1819s Fetched 11.0 MB in 1s (11.2 MB/s) 1819s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 1819s Preparing to unpack .../motd-news-config_13.7ubuntu1_all.deb ... 1819s Unpacking motd-news-config (13.7ubuntu1) over (13.6ubuntu2) ... 1819s Preparing to unpack .../base-files_13.7ubuntu1_armhf.deb ... 1819s Unpacking base-files (13.7ubuntu1) over (13.6ubuntu2) ... 1819s Setting up base-files (13.7ubuntu1) ... 1819s Installing new version of config file /etc/issue ... 1819s Installing new version of config file /etc/issue.net ... 1819s Installing new version of config file /etc/lsb-release ... 1820s motd-news.service is a disabled or a static unit not running, not starting it. 1820s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 1820s Preparing to unpack .../dpkg_1.22.18ubuntu3_armhf.deb ... 1820s Unpacking dpkg (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 1820s Setting up dpkg (1.22.18ubuntu3) ... 1821s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 1821s Preparing to unpack .../python3.13_3.13.3-2_armhf.deb ... 1821s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1821s Preparing to unpack .../libpython3.13-stdlib_3.13.3-2_armhf.deb ... 1821s Unpacking libpython3.13-stdlib:armhf (3.13.3-2) over (3.13.3-1) ... 1821s Preparing to unpack .../python3.13-minimal_3.13.3-2_armhf.deb ... 1821s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1821s Preparing to unpack .../libpython3.13-minimal_3.13.3-2_armhf.deb ... 1821s Unpacking libpython3.13-minimal:armhf (3.13.3-2) over (3.13.3-1) ... 1821s Preparing to unpack .../libnpth0t64_1.8-3_armhf.deb ... 1821s Unpacking libnpth0t64:armhf (1.8-3) over (1.8-2) ... 1821s Setting up libnpth0t64:armhf (1.8-3) ... 1821s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 1821s Preparing to unpack .../00-distro-info-data_0.64_all.deb ... 1821s Unpacking distro-info-data (0.64) over (0.63) ... 1821s Preparing to unpack .../01-ubuntu-pro-client-l10n_35.1ubuntu0_armhf.deb ... 1821s Unpacking ubuntu-pro-client-l10n (35.1ubuntu0) over (35) ... 1821s Preparing to unpack .../02-ubuntu-pro-client_35.1ubuntu0_armhf.deb ... 1822s Unpacking ubuntu-pro-client (35.1ubuntu0) over (35) ... 1822s Preparing to unpack .../03-ed_1.21.1-1_armhf.deb ... 1822s Unpacking ed (1.21.1-1) over (1.21-1) ... 1822s Preparing to unpack .../04-libsensors-config_1%3a3.6.2-2_all.deb ... 1822s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 1822s Preparing to unpack .../05-libsensors5_1%3a3.6.2-2_armhf.deb ... 1822s Unpacking libsensors5:armhf (1:3.6.2-2) over (1:3.6.0-10) ... 1822s Preparing to unpack .../06-liburcu8t64_0.15.2-2_armhf.deb ... 1822s Unpacking liburcu8t64:armhf (0.15.2-2) over (0.15.1-1) ... 1822s Preparing to unpack .../07-nano_8.4-1_armhf.deb ... 1822s Unpacking nano (8.4-1) over (8.3-1) ... 1822s Preparing to unpack .../08-usb.ids_2025.04.01-1_all.deb ... 1822s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 1822s Preparing to unpack .../09-dpkg-dev_1.22.18ubuntu3_all.deb ... 1822s Unpacking dpkg-dev (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 1822s Preparing to unpack .../10-libdpkg-perl_1.22.18ubuntu3_all.deb ... 1822s Unpacking libdpkg-perl (1.22.18ubuntu3) over (1.22.18ubuntu2) ... 1822s Preparing to unpack .../11-fwupd_2.0.8-3_armhf.deb ... 1822s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 1822s dpkg: warning: unable to delete old directory '/etc/grub.d': Directory not empty 1822s Preparing to unpack .../12-libfwupd3_2.0.8-3_armhf.deb ... 1822s Unpacking libfwupd3:armhf (2.0.8-3) over (2.0.7-1) ... 1822s Preparing to unpack .../13-htop_3.4.1-4_armhf.deb ... 1822s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1822s Preparing to unpack .../14-libftdi1-2_1.5-10_armhf.deb ... 1822s Unpacking libftdi1-2:armhf (1.5-10) over (1.5-8build1) ... 1822s Preparing to unpack .../15-libnvme1t64_1.13-2_armhf.deb ... 1822s Unpacking libnvme1t64 (1.13-2) over (1.11.1-2) ... 1822s Preparing to unpack .../16-python3.13-gdbm_3.13.3-2_armhf.deb ... 1822s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1822s Setting up motd-news-config (13.7ubuntu1) ... 1822s Setting up liburcu8t64:armhf (0.15.2-2) ... 1822s Setting up distro-info-data (0.64) ... 1822s Setting up htop (3.4.1-4) ... 1822s Setting up libsensors-config (1:3.6.2-2) ... 1822s Installing new version of config file /etc/sensors3.conf ... 1822s Setting up libfwupd3:armhf (2.0.8-3) ... 1822s Setting up libpython3.13-minimal:armhf (3.13.3-2) ... 1822s Setting up libftdi1-2:armhf (1.5-10) ... 1822s Setting up libnvme1t64 (1.13-2) ... 1822s Setting up ed (1.21.1-1) ... 1822s Setting up usb.ids (2025.04.01-1) ... 1822s Setting up libsensors5:armhf (1:3.6.2-2) ... 1822s Setting up libdpkg-perl (1.22.18ubuntu3) ... 1822s Setting up nano (8.4-1) ... 1822s Installing new version of config file /etc/nanorc ... 1822s Setting up python3.13-minimal (3.13.3-2) ... 1823s Setting up libpython3.13-stdlib:armhf (3.13.3-2) ... 1823s Setting up ubuntu-pro-client (35.1ubuntu0) ... 1823s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 1823s 1824s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 1824s 1824s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 1824s 1825s Setting up fwupd (2.0.8-3) ... 1825s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 1826s fwupd.service is a disabled or a static unit not running, not starting it. 1826s Setting up python3.13-gdbm (3.13.3-2) ... 1826s Setting up ubuntu-pro-client-l10n (35.1ubuntu0) ... 1826s Setting up python3.13 (3.13.3-2) ... 1827s Setting up dpkg-dev (1.22.18ubuntu3) ... 1827s Processing triggers for dbus (1.16.2-2ubuntu1) ... 1827s Processing triggers for install-info (7.1.1-1) ... 1827s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1827s Processing triggers for systemd (257.4-1ubuntu3) ... 1827s Processing triggers for man-db (2.13.0-1) ... 1829s Processing triggers for plymouth-theme-ubuntu-text (24.004.60-2ubuntu7) ... 1829s Processing triggers for initramfs-tools (0.147ubuntu1) ... 1831s Reading package lists... 1831s Building dependency tree... 1831s Reading state information... 1831s Starting pkgProblemResolver with broken count: 0 1831s Starting 2 pkgProblemResolver with broken count: 0 1831s Done 1832s Solving dependencies... 1832s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1834s autopkgtest [01:09:17]: rebooting testbed after setup commands that affected boot 1898s Reading package lists... 1898s Building dependency tree... 1898s Reading state information... 1898s Starting pkgProblemResolver with broken count: 0 1898s Starting 2 pkgProblemResolver with broken count: 0 1898s Done 1899s The following NEW packages will be installed: 1899s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1899s libdconf1 1899s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1899s Need to get 138 kB of archives. 1899s After this operation, 633 kB of additional disk space will be used. 1899s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libdconf1 armhf 0.40.0-5 [38.4 kB] 1899s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf dconf-service armhf 0.40.0-5 [27.6 kB] 1899s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dconf-gsettings-backend armhf 0.40.0-5 [23.8 kB] 1899s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-repack all 1.54 [11.2 kB] 1900s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 1900s Fetched 138 kB in 0s (404 kB/s) 1900s Selecting previously unselected package libdconf1:armhf. 1900s (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 ... 63951 files and directories currently installed.) 1900s Preparing to unpack .../libdconf1_0.40.0-5_armhf.deb ... 1900s Unpacking libdconf1:armhf (0.40.0-5) ... 1900s Selecting previously unselected package dconf-service. 1900s Preparing to unpack .../dconf-service_0.40.0-5_armhf.deb ... 1900s Unpacking dconf-service (0.40.0-5) ... 1900s Selecting previously unselected package dconf-gsettings-backend:armhf. 1900s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_armhf.deb ... 1900s Unpacking dconf-gsettings-backend:armhf (0.40.0-5) ... 1900s Selecting previously unselected package dpkg-repack. 1900s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1900s Unpacking dpkg-repack (1.54) ... 1900s Selecting previously unselected package gsettings-desktop-schemas. 1900s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 1900s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 1900s Setting up dpkg-repack (1.54) ... 1900s Setting up libdconf1:armhf (0.40.0-5) ... 1900s Setting up dconf-service (0.40.0-5) ... 1900s Setting up dconf-gsettings-backend:armhf (0.40.0-5) ... 1900s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 1900s Processing triggers for man-db (2.13.0-1) ... 1901s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 1901s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1921s autopkgtest [01:10:44]: test 1065022-futureproofing: [----------------------- 1923s + export DEBIAN_FRONTEND=noninteractive 1923s + n=0 1923s + failed=0 1923s + binary_package=libglib2.0-0t64 1923s + future_binary_package=libglib2.0-0xyz 1923s + pwd 1923s + srcdir=/tmp/autopkgtest.QUXAzf/build.0Vc/src 1923s + mktemp -d 1923s + tmpdir=/tmp/tmp.kWNcUH3dDX 1923s + cd /tmp/tmp.kWNcUH3dDX 1923s + [ -e /tmp/autopkgtest.QUXAzf/build.0Vc/src/debian/tests/manual/local-1065022.sources ] 1923s + dpkg-query -W dpkg-repack 1923s dpkg-repack 1.54 1923s + dpkg-repack --generate libglib2.0-0t64 1923s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1923s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.D_csMM for libglib2.0-0t64 1923s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.D_csMM ." 1923s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.D_csMM/DEBIAN/control 1923s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.D_csMM/DEBIAN/control 1923s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.D_csMM/DEBIAN/control 1923s + 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.D_csMM/DEBIAN/control 1923s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.D_csMM libglib2.0-0xyz.deb 1923s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1924s + apt-get -y install ./libglib2.0-0xyz.deb 1924s Reading package lists... 1924s Building dependency tree... 1924s Reading state information... 1925s Solving dependencies... 1925s The following packages were automatically installed and are no longer required: 1925s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1925s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 1925s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 1925s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-configobj 1925s python3-debconf python3-markdown-it python3-mdurl python3-problem-report 1925s python3-pygments python3-rich python3-systemd 1925s Use 'apt autoremove' to remove them. 1925s The following additional packages will be installed: 1925s xdg-user-dirs 1925s Suggested packages: 1925s low-memory-monitor 1925s Recommended packages: 1925s shared-mime-info 1925s The following packages will be REMOVED: 1925s apport apport-core-dump-handler bolt cloud-init cloud-init-base 1925s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 1925s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 1925s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 1925s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 1925s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 1925s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 1925s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 1925s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 1925s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 1925s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 1925s The following NEW packages will be installed: 1925s libglib2.0-0xyz xdg-user-dirs 1925s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 1925s Need to get 17.4 kB/1472 kB of archives. 1925s After this operation, 28.1 MB disk space will be freed. 1925s Get:1 /tmp/tmp.kWNcUH3dDX/libglib2.0-0xyz.deb libglib2.0-0xyz armhf 2.84.1-1 [1455 kB] 1926s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf xdg-user-dirs armhf 0.18-2 [17.4 kB] 1926s Fetched 17.4 kB in 0s (78.0 kB/s) 1926s (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 ... 64020 files and directories currently installed.) 1926s Removing bolt (0.9.8-1) ... 1926s Removing cloud-init (25.1.1-0ubuntu2) ... 1926s Removing cloud-init-base (25.1.1-0ubuntu2) ... 1927s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 1927s Removing dconf-gsettings-backend:armhf (0.40.0-5) ... 1927s Removing dconf-service (0.40.0-5) ... 1927s Removing fwupd (2.0.8-3) ... 1928s Removing networkd-dispatcher (2.2.4-1.1) ... 1928s Removing udisks2 (2.10.1-11ubuntu2) ... 1928s Removing libblockdev-crypto3:armhf (3.3.0-2) ... 1928s Removing libblockdev-fs3:armhf (3.3.0-2) ... 1928s Removing libblockdev-loop3:armhf (3.3.0-2) ... 1928s Removing libblockdev-mdraid3:armhf (3.3.0-2) ... 1928s Removing libblockdev-nvme3:armhf (3.3.0-2) ... 1928s Removing libblockdev-part3:armhf (3.3.0-2) ... 1929s Removing libblockdev-swap3:armhf (3.3.0-2) ... 1929s Removing libblockdev3:armhf (3.3.0-2) ... 1929s Removing libblockdev-utils3:armhf (3.3.0-2) ... 1929s Removing libdconf1:armhf (0.40.0-5) ... 1929s Removing libfwupd3:armhf (2.0.8-3) ... 1929s Removing shared-mime-info (2.4-5build1) ... 1929s Removing xfsprogs (6.13.0-2ubuntu1) ... 1929s Removing python3-dbus (1.3.2-5build5) ... 1929s Removing libgudev-1.0-0:armhf (1:238-6) ... 1929s Removing libjcat1:armhf (0.2.0-2build3) ... 1929s Removing libjson-glib-1.0-0:armhf (1.10.6+ds-2) ... 1929s Removing libqmi-proxy (1.35.6-1) ... 1929s Removing libqmi-glib5:armhf (1.35.6-1) ... 1929s Removing libmbim-proxy (1.31.2-0ubuntu4) ... 1929s Removing libmbim-glib4:armhf (1.31.2-0ubuntu4) ... 1929s Removing libmm-glib0:armhf (1.23.4-0ubuntu3) ... 1930s Removing ubuntu-minimal (1.549) ... 1930s Removing netplan.io (1.1.2-2ubuntu1) ... 1930s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 1930s Removing python3-netplan (1.1.2-2ubuntu1) ... 1930s Removing netplan-generator (1.1.2-2ubuntu1) ... 1930s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 1930s Removing libnetplan1:armhf (1.1.2-2ubuntu1) ... 1930s Removing libpolkit-agent-1-0:armhf (126-2) ... 1930s Removing libpolkit-gobject-1-0:armhf (126-2) ... 1930s Removing libqrtr-glib0:armhf (1.2.2-1ubuntu4) ... 1930s Removing libudisks2-0:armhf (2.10.1-11ubuntu2) ... 1930s Removing libvolume-key1:armhf (0.3.12-9) ... 1930s Removing libxmlb2:armhf (0.3.22-1) ... 1930s Removing apport (2.32.0-0ubuntu5) ... 1930s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 1931s Removing python3-gi (3.50.0-4build1) ... 1931s Removing gir1.2-girepository-2.0:armhf (1.84.0-1) ... 1931s Removing gir1.2-glib-2.0:armhf (2.84.1-1) ... 1931s Removing libgirepository-1.0-1:armhf (1.84.0-1) ... 1931s Removing libglib2.0-0t64:armhf (2.84.1-1) ... 1931s Selecting previously unselected package libglib2.0-0xyz:armhf. 1931s (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 ... 62877 files and directories currently installed.) 1931s Preparing to unpack .../libglib2.0-0xyz.deb ... 1931s Unpacking libglib2.0-0xyz:armhf (2.84.1-1) ... 1931s Selecting previously unselected package xdg-user-dirs. 1931s Preparing to unpack .../xdg-user-dirs_0.18-2_armhf.deb ... 1931s Unpacking xdg-user-dirs (0.18-2) ... 1931s Setting up xdg-user-dirs (0.18-2) ... 1931s Setting up libglib2.0-0xyz:armhf (2.84.1-1) ... 1931s No schema files found: removed existing output file. 1931s Processing triggers for dbus (1.16.2-2ubuntu1) ... 1931s Processing triggers for initramfs-tools (0.147ubuntu1) ... 1931s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1931s Processing triggers for man-db (2.13.0-1) ... 1932s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1932s not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1932s not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1932s not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1932s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1932s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1932s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s + n=1 1932s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1932s + failed=1 1932s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + n=2 1932s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1932s + failed=1 1932s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1932s + n=3 1932s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1932s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1932s + failed=1 1932s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1932s + n=4 1932s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1932s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1932s + failed=1 1932s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1932s + n=5 1932s + test -e /usr/lib/*/gio/modules/giomodule.cache 1932s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1932s + failed=1 1932s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1932s + n=6 1932s + test -s /usr/lib/*/gio/modules/giomodule.cache 1932s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1932s + failed=1 1932s + apt-get -y purge libglib2.0-0t64 1932s Reading package lists... 1933s Building dependency tree... 1933s Reading state information... 1933s The following packages were automatically installed and are no longer required: 1933s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1933s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 1933s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 1933s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-configobj 1933s python3-debconf python3-markdown-it python3-mdurl python3-problem-report 1933s python3-pygments python3-rich python3-systemd 1933s Use 'apt autoremove' to remove them. 1933s The following packages will be REMOVED: 1933s libglib2.0-0t64* 1934s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1934s After this operation, 0 B of additional disk space will be used. 1934s (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 ... 62912 files and directories currently installed.) 1934s Purging configuration files for libglib2.0-0t64:armhf (2.84.1-1) ... 1934s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1934s + n=7 1934s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1934s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1934s + failed=1 1934s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1934s + n=8 1934s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1934s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1934s + failed=1 1934s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1934s + n=9 1934s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1934s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1934s + failed=1 1934s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1934s + n=10 1934s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1934s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1934s + failed=1 1934s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1934s + n=11 1934s + test -e /usr/lib/*/gio/modules/giomodule.cache 1934s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1934s + failed=1 1934s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1934s + n=12 1934s + test -s /usr/lib/*/gio/modules/giomodule.cache 1934s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1934s + failed=1 1934s + apt-get -y purge libglib2.0-0xyz 1934s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1934s not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1934s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1934s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1934s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1934s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1934s Reading package lists... 1934s Building dependency tree... 1934s Reading state information... 1935s The following packages were automatically installed and are no longer required: 1935s apport-symptoms exfatprogs jq libatasmart4 libatomic1 libbytesize-common 1935s libbytesize1 libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 1935s libglib2.0-data libgpgme11t64 libicu76 libinih1 libjq1 1935s libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 libprotobuf-c1 1935s python3-apport python3-configobj python3-debconf python3-markdown-it 1935s python3-mdurl python3-problem-report python3-pygments python3-rich 1935s python3-systemd xdg-user-dirs 1935s Use 'apt autoremove' to remove them. 1935s The following packages will be REMOVED: 1935s libglib2.0-0xyz* 1935s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1935s After this operation, 3455 kB disk space will be freed. 1936s (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 ... 62912 files and directories currently installed.) 1936s Removing libglib2.0-0xyz:armhf (2.84.1-1) ... 1936s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1936s (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 ... 62887 files and directories currently installed.) 1936s Purging configuration files for libglib2.0-0xyz:armhf (2.84.1-1) ... 1936s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1936s + n=13 1936s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1936s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1936s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1936s + n=14 1936s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1936s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1936s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 1936s + n=15 1936s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1936s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1936s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 1936s + n=16 1936s + test -e /usr/lib/*/gio/modules/giomodule.cache 1936s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1936s + echo 1..16 1936s + exit 1 1936s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1936s ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1936s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1936s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1936s 1..16 1936s autopkgtest [01:10:59]: test 1065022-futureproofing: -----------------------] 1940s 1065022-futureproofing FLAKY non-zero exit status 1 1940s autopkgtest [01:11:03]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1944s autopkgtest [01:11:07]: @@@@@@@@@@@@@@@@@@@@ summary 1944s build PASS (superficial) 1944s build-static PASS (superficial) 1944s girepository-tools PASS (superficial) 1944s libgio-2.0-dev-bin PASS (superficial) 1944s libglib2.0-dev PASS (superficial) 1944s installed-tests PASS 1944s closure-refcount PASS 1944s debugcontroller PASS 1944s gdbus-server-auth PASS 1944s gdbus-threading PASS 1944s gmenumodel PASS 1944s mainloop PASS 1944s memory-monitor-dbus PASS 1944s socket PASS 1944s testfilemonitor PASS 1944s thread-pool-slow PASS 1944s threadtests PASS 1944s timeout PASS 1944s timer PASS 1944s 1065022-futureproofing FLAKY non-zero exit status 1